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

debugging with node-inspector triggers -> "Step authenticate of password module timed out" #49

Closed
wsdookadr opened this issue Aug 2, 2011 · 1 comment

Comments

@wsdookadr
Copy link

With nodejs 0.4.10 and everyauth 0.2.17 I get the following error while debugging with node-inspector.
I guess there should be some code which detects if someone is debugging and the timeout should be set appropriately.

/home/user/stuff/node_modules/everyauth/lib/modules/everymodule.js:350
  throw err;
  ^
Error: Step authenticate of `password` module timed out.
    at /home/user/stuff/node_modules/everyauth/lib/step.js:119:18
    at Object.<anonymous> (/home/user/stuff/node_modules/everyauth/lib/promise.js:64:27)
    at Timer.callback (timers.js:83:39)
@bnoguchi
Copy link
Owner

bnoguchi commented Aug 2, 2011

Yes, this is possible. Just do the following:

everyauth.everymodule.moduleTimeout(3600000); // Timeout for an hour

This timeout can be over-ridden at the step level via:

everyauth.oauth
  .step('fetchOAuthUser')
    .stepTimeout(8000); // Wait 8000 seconds before throwing a timeout error

@bnoguchi bnoguchi closed this as completed Aug 2, 2011
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

2 participants