Skip to content

Twitter oAuth Callback triggers exception #35

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

Closed
sreuter opened this issue Jul 12, 2011 · 5 comments
Closed

Twitter oAuth Callback triggers exception #35

sreuter opened this issue Jul 12, 2011 · 5 comments

Comments

@sreuter
Copy link

sreuter commented Jul 12, 2011

My first guess was that i forgot about the express session middleware but it's setup and working (req.session exists)...

starting step - getRequestToken
...finished step
starting step - storeRequestToken
...finished step
starting step - redirectToProviderAuth
...finished step
starting step - extractTokenAndVerifier
...finished step
starting step - getSession
...finished step
starting step - rememberTokenSecret

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Step rememberTokenSecret of twitter is promising: requestTokenSecret ; however, the step returns nothing. Fix the step by returning the expected values OR by returning a Promise that promises said values.

@bnoguchi
Copy link
Owner

Can you copy/paste a gist, so I can re-create this error?

@pgte
Copy link

pgte commented Jul 15, 2011

I also have this problem. Trying to figure it out...

@bnoguchi
Copy link
Owner

gist please? Also, let me know if this error occurs in example/ which works without errors on my machine.

@pgte
Copy link

pgte commented Jul 16, 2011

I think I know what it is in my case, it's my fault, sorry.
I have dev.mydomain.com setup in the twitter app, but I was starting out with localhost and then being redirected back to dev.mydomain.com (which points to localhost). Obviously the session didn't work because of that.
Thanks!

@bnoguchi
Copy link
Owner

@sreuter's gist is here. In his case, commenting out gzip.gzip() eliminates the exception. For more details, please see the following connect-gzip issue.

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

3 participants