Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some help in getting this up and running #1

Open
Analect opened this issue Nov 13, 2014 · 8 comments
Open

Some help in getting this up and running #1

Analect opened this issue Nov 13, 2014 · 8 comments

Comments

@Analect
Copy link

Analect commented Nov 13, 2014

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)

@Kovner
Copy link
Owner

Kovner commented Nov 14, 2014

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.

@Analect
Copy link
Author

Analect commented Nov 14, 2014

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

@russch
Copy link
Collaborator

russch commented Nov 14, 2014

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.

@Analect
Copy link
Author

Analect commented Nov 17, 2014

@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

@russch
Copy link
Collaborator

russch commented Nov 17, 2014

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).

@mmhasan915
Copy link

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 .

@Kovner
Copy link
Owner

Kovner commented Sep 12, 2017

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.

@mmhasan915
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants