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

APIToken validation error #419

Closed
orweinberger opened this issue Apr 27, 2014 · 2 comments
Closed

APIToken validation error #419

orweinberger opened this issue Apr 27, 2014 · 2 comments
Assignees
Milestone

Comments

@orweinberger
Copy link
Member

I'm trying to load the SDK and perform a basic initialization of joola.io on the page:

script(src="http://localhost:8080/joola.io.js?APIToken=apitoken-root")

Generates: Uncaught TypeError: Cannot read property 'token' of undefined
Referenced to this line: joolaio.TOKEN = user.token._;

If I try to load the SDK in the following way (defining the APIToken under the init function instead of the script url), I get the same behavior:

script(src="http://localhost:8080/joola.io.js")
joolaio.init({"host": "http://localhost:8080", "APIToken": "apitoken-root"}, function (err, result) {

});
@orweinberger orweinberger added this to the Version 0.5 milestone Apr 27, 2014
@itayw
Copy link
Member

itayw commented Apr 28, 2014

Please npm update and tell me if it works.

@orweinberger
Copy link
Member Author

npm update did not work, however running npm install https://github.com/joola/joola.io.sdk/tarball/develop did the trick.

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

No branches or pull requests

2 participants