-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
need to check if the context is active #2636
Conversation
if you for example load the explorer, you don't have any active context, and it will fail here then with the message: "Error: No context available. ns.run() or ns.bind() must be called first."
Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test." |
Can one of the admins verify this patch? |
3 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Thank you @azatoth for the pull request. As I mentioned in Gitter, I think this is fixing a wrong place. |
@azatoth please reproduce the problem using loopback-context only, add a failing test to https://github.com/strongloop/loopback-context/blob/268716f69eec246b4ae0f7e402147b6fcbc924cf/test/main.test.js and then try to fix the problem directly in loopback-context. |
Reopening. So apparently |
Can one of the admins verify this patch? |
3 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test." |
@slnode ok to test |
Closing in favour of #2649 |
if you for example load the explorer, you don't have any active context,
and it will fail here then with the message:
"Error: No context available. ns.run() or ns.bind() must be called
first."
Fix strongloop/loopback-context#6