Giter Club home page Giter Club logo

tcc_apis's Issues

Some help in getting this up and running

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)

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.