Giter Club home page Giter Club logo

Comments (8)

Kovner avatar Kovner commented on July 19, 2024

Hi Colum,

Thanks for reaching out.
I’ll have to look through all of this and give you answers. I don’t really have much free time over the next few business days, though, so it might be a week or so before I have some time to devote to it.

Thanks,
Kovner

On Nov 13, 2014, at 11:27 AM, Analect [email protected] wrote:

Hi,
I made the user and server changes in the code, as per the readme. I created a 'rest' site (with id 'rest') and published the *.twbx file in the repo to this site.
The app runs up OK .. and allows me to sign in ...
However, after sign-in, it gives me an error msg "Could not locate unexpired trust ticket -1"
It appears to be using trusted/-1 as part of the API call .. and getting a 403 forbidden response ...
Only when I click on the "Analyze Your Own Data" ... and the app crashes (see console output at the bottom) ... do I see the Auth token and site id written to the console. Any idea what I might be going wrong here. It appears it is getting an auth token, but then not passing that properly to the REST call?

Also, I see further down in app.js, there are various references to C:\node\public\js and a csv_2_tde.py python script. I don't see any of this documented in the readme. Would you have some info around this, as ideally I would love to be able to refactor to get it working on linux ... as it looks like there's great material in here in terms of trying to get a better understanding for the API.

Is there anything in the code here that handles publishing the a workbook to the server via code? I don't think the REST API handles that ... but I was thinking maybe there was some other clever things being done to get around that.

Thanks,
Colum

(env)me@ubuntu:~/Development/Tools/Tableau/TCC_APIs$ node app
body-parser deprecated bodyParser: use individual json/urlencoded middlewares app.js:27:9
body-parser deprecated undefined extended: provide extended option node_modules/body-parser/index.js:85:29
express-session deprecated undefined resave option; provide resave option app.js:33:9
express-session deprecated undefined saveUninitialized option; provide saveUninitialized option app.js:33:9
express-session deprecated req.secret; provide secret option app.js:33:9
Listening on port 8001
me_user
Auth token: 9250a2809c456c299ce265650c92a40b
site id: 764460ca-3bb7-4672-8b68-71799bf25a34

TypeError: Cannot read property 'length' of undefined
at /home/me/Development/Tools/Tableau/TCC_APIs/app.js:427:56
at Parser. (/home/me/Development/Tools/Tableau/TCC_APIs/node_modules/xml2js/lib/xml2js.js:384:20)
at Parser.emit (events.js:95:17)
at Object.onclosetag (/home/me/Development/Tools/Tableau/TCC_APIs/node_modules/xml2js/lib/xml2js.js:348:26)
at emit (/home/me/Development/Tools/Tableau/TCC_APIs/node_modules/xml2js/node_modules/sax/lib/sax.js:615:33)
at emitNode (/home/me/Development/Tools/Tableau/TCC_APIs/node_modules/xml2js/node_modules/sax/lib/sax.js:620:3)
at closeTag (/home/me/Development/Tools/Tableau/TCC_APIs/node_modules/xml2js/node_modules/sax/lib/sax.js:861:5)
at Object.write (/home/me/Development/Tools/Tableau/TCC_APIs/node_modules/xml2js/node_modules/sax/lib/sax.js:1294:29)
at Parser.exports.Parser.Parser.parseString (/home/me/Development/Tools/Tableau/TCC_APIs/node_modules/xml2js/lib/xml2js.js:403:31)
at Parser.parseString (/home/me/Development/Tools/Tableau/TCC_APIs/node_modules/xml2js/lib/xml2js.js:6:61)


Reply to this email directly or view it on GitHub.

from tcc_apis.

Analect avatar Analect commented on July 19, 2024

No problem @Kovner ... whenever you find a chance. Much appreciated.

from tcc_apis.

russch avatar russch commented on July 19, 2024

Sounds less like an app problem and more with the way Trusted
Authentication has been configured. Forget about the demo app for a moment

On Thu, Nov 13, 2014 at 2:27 PM, Analect [email protected] wrote:

Hi,
I made the user and server changes in the code, as per the readme. I
created a 'rest' site (with id 'rest') and published the *.twbx file in the
repo to this site.
The app runs up OK .. and allows me to sign in ...
However, after sign-in, it gives me an error msg "Could not locate
unexpired trust ticket -1"
It appears to be using trusted/-1 as part of the API call .. and getting a
403 forbidden response ...
Only when I click on the "Analyze Your Own Data" ... and the app crashes
(see console output at the bottom) ... do I see the Auth token and site id
written to the console. Any idea what I might be going wrong here. It
appears it is getting an auth token, but then not passing that properly to
the REST call?

Also, I see further down in app.js, there are various references to
C:\node\public\js and a csv_2_tde.py python script. I don't see any of this
documented in the readme. Would you have some info around this, as ideally
I would love to be able to refactor to get it working on linux ... as it
looks like there's great material in here in terms of trying to get a
better understanding for the API.

Is there anything in the code here that handles publishing the a workbook
to the server via code? I don't think the REST API handles that ... but I
was thinking maybe there was some other clever things being done to get
around that.

Thanks,
Colum

(env)me@ubuntu:~/Development/Tools/Tableau/TCC_APIs$ node app
body-parser deprecated bodyParser: use individual json/urlencoded
middlewares app.js:27:9
body-parser deprecated undefined extended: provide extended option
node_modules/body-parser/index.js:85:29
express-session deprecated undefined resave option; provide resave option
app.js:33:9
express-session deprecated undefined saveUninitialized option; provide
saveUninitialized option app.js:33:9
express-session deprecated req.secret; provide secret option app.js:33:9
Listening on port 8001
me_user
Auth token: 9250a2809c456c299ce265650c92a40b
site id: 764460ca-3bb7-4672-8b68-71799bf25a34

TypeError: Cannot read property 'length' of undefined
at /home/me/Development/Tools/Tableau/TCC_APIs/app.js:427:56
at Parser.
(/home/me/Development/Tools/Tableau/TCC_APIs/node_modules/xml2js/lib/xml2js.js:384:20)
at Parser.emit (events.js:95:17)
at Object.onclosetag
(/home/me/Development/Tools/Tableau/TCC_APIs/node_modules/xml2js/lib/xml2js.js:348:26)
at emit
(/home/me/Development/Tools/Tableau/TCC_APIs/node_modules/xml2js/node_modules/sax/lib/sax.js:615:33)
at emitNode
(/home/me/Development/Tools/Tableau/TCC_APIs/node_modules/xml2js/node_modules/sax/lib/sax.js:620:3)
at closeTag
(/home/me/Development/Tools/Tableau/TCC_APIs/node_modules/xml2js/node_modules/sax/lib/sax.js:861:5)
at Object.write
(/home/me/Development/Tools/Tableau/TCC_APIs/node_modules/xml2js/node_modules/sax/lib/sax.js:1294:29)
at Parser.exports.Parser.Parser.parseString
(/home/me/Development/Tools/Tableau/TCC_APIs/node_modules/xml2js/lib/xml2js.js:403:31)
at Parser.parseString
(/home/me/Development/Tools/Tableau/TCC_APIs/node_modules/xml2js/lib/xml2js.js:6:61)


Reply to this email directly or view it on GitHub
#1.

from tcc_apis.

Analect avatar Analect commented on July 19, 2024

@russch . Thanks for the link. I ran through this set-up, however I still get a '-1' at the end. It points me to another KB article to resolve, but it appears this is blank, for some reason. http://kb.tableausoftware.com/articles/knowledgebase/common-issues-and-errors-associated-trusted-tickets

from tcc_apis.

russch avatar russch commented on July 19, 2024

OK, so your problem isn't the app, it's the way Tableau Server is
configured.

At this point your best bet is to jump out to the Tableau User Forums on
tableausoftware.com. The folks on those boards can help you troubleshoot
your Tableau config so that trusted tickets works...then the app will work
too :)

On Mon, Nov 17, 2014 at 12:14 PM, Analect [email protected] wrote:

@russch https://github.com/russch . Thanks for the link. I ran through
this set-up, however I still get a '-1' at the end. It points me to another
KB article to resolve, but it appears this is blank, for some reason.
http://kb.tableausoftware.com/articles/knowledgebase/common-issues-and-errors-associated-trusted-tickets


Reply to this email directly or view it on GitHub
#1 (comment).

from tcc_apis.

mmhasan915 avatar mmhasan915 commented on July 19, 2024

Hi
I do as all the the things which as per your instruction but when i run the command node app then i face this error.

C:\node\TCC_APIs-master>node app
body-parser deprecated bodyParser: use individual json/urlencoded middlewares ap
p.js:27:9
body-parser deprecated undefined extended: provide extended option node_modules
body-parser\index.js:105:29
express-session deprecated undefined resave option; provide resave option app.js
:33:9
express-session deprecated undefined saveUninitialized option; provide saveUnini
tialized option app.js:33:9
express-session deprecated req.secret; provide secret option app.js:33:9
Listening on port 8001

Please can you help me .

from tcc_apis.

Kovner avatar Kovner commented on July 19, 2024

Those look like deprecation warnings, not errors to me. It looks like it's running.

But this app is a few years old, Node and Express have advanced significantly since then, so there might be a lot of old or unworking code in there.

from tcc_apis.

mmhasan915 avatar mmhasan915 commented on July 19, 2024

Hey
Thanks for reply,Ya that's not an error it just ban warning.But your code still working well. Thanks for sharing such a useful code.

from tcc_apis.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.