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

TypeError: resources.ProjectMemberships is not a constructor #160

Open
andrelung opened this issue Jul 31, 2018 · 1 comment
Open

TypeError: resources.ProjectMemberships is not a constructor #160

andrelung opened this issue Jul 31, 2018 · 1 comment

Comments

@andrelung
Copy link

Not sure, if this is related to the oauth_webserver.js example or the client.js, but I keep getting this error when trying to get the oauth working:
~/dev/node-asana-master/examples/oauth/webserver $ node oauth_webserver.js Listening on port 5000 TypeError: resources.ProjectMemberships is not a constructor at new Client (/Users/al/dev/node-asana-master/lib/client.js:49:29) at Function.Client.create (/Users/al/dev/node-asana-master/lib/client.js:179:10) at createClient (/Users/al/dev/node-asana-master/examples/oauth/webserver/oauth_webserver.js:29:23) at /Users/al/dev/node-asana-master/examples/oauth/webserver/oauth_webserver.js:41:16 at Layer.handle [as handle_request] (/Users/al/dev/node-asana-master/examples/oauth/webserver/node_modules/express/lib/router/layer.js:95:5) at next (/Users/al/dev/node-asana-master/examples/oauth/webserver/node_modules/express/lib/router/route.js:137:13) at Route.dispatch (/Users/al/dev/node-asana-master/examples/oauth/webserver/node_modules/express/lib/router/route.js:112:3) at Layer.handle [as handle_request] (/Users/al/dev/node-asana-master/examples/oauth/webserver/node_modules/express/lib/router/layer.js:95:5) at /Users/al/dev/node-asana-master/examples/oauth/webserver/node_modules/express/lib/router/index.js:281:22 at Function.process_params (/Users/al/dev/node-asana-master/examples/oauth/webserver/node_modules/express/lib/router/index.js:335:12) at next (/Users/al/dev/node-asana-master/examples/oauth/webserver/node_modules/express/lib/router/index.js:275:10) at cookieParser (/Users/al/dev/node-asana-master/examples/oauth/webserver/node_modules/cookie-parser/index.js:70:5) at Layer.handle [as handle_request] (/Users/al/dev/node-asana-master/examples/oauth/webserver/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/Users/al/dev/node-asana-master/examples/oauth/webserver/node_modules/express/lib/router/index.js:317:13) at /Users/al/dev/node-asana-master/examples/oauth/webserver/node_modules/express/lib/router/index.js:284:7 at Function.process_params (/Users/al/dev/node-asana-master/examples/oauth/webserver/node_modules/express/lib/router/index.js:335:12)

Can someone help?

@joetrollo
Copy link
Contributor

Sorry about this issue, it seems that an individual automated test failed but Travis still marked the suite as passing, which is how this bug was merged in. It should be fixed in the latest release, though. Can you confirm whether the problem persists?

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

No branches or pull requests

2 participants