kovner / tcc_apis Goto Github PK
View Code? Open in Web Editor NEWNodeJS Portal to display the use of all Tableau APIs.
NodeJS Portal to display the use of all Tableau APIs.
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.