You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Part of the problems with Loopback context is because async and continuation-local-storage are used together under the hood. These two modules are known to have issues when used together.
@marlonkjoseph Your premises are correct, but upgrading all modules in node_modules includingloopback to async v2.0.0 did not solve the issue for me. Instead, I had more success with Node v6.3.1 and my own PR strongloop/loopback-context#2 locally, and I believe that it works thanks to its async-hook deep dependency (which requires a recent version of Node), but I need some more tests to be sure.
Part of the problems with Loopback context is because async and continuation-local-storage are used together under the hood. These two modules are known to have issues when used together.
When I ran this sample code with async 1.5.2, the active context is null within the 2nd callback of the async waterfall.
This issue was resolved however when I upgraded to async 2.0.0:
https://gist.github.com/marlonkjoseph/f42f3c71f746896a0d4b7279a34ea753
I believe upgrading the version of async on all Loopback modules should resolve the context issues.
The text was updated successfully, but these errors were encountered: