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
I have a NodeJS application using Node8 and Express 4. Am using CLS to store an API token at the time of login and to retrieve the token further down the line. This token is in session and is set to CLS on every request (so that I dont have to pass the request object to each and every method) so that I can retrieve it at a later time in the nth function.
This is working fine as a node js app. But when I try to run it as a serverless app, the context does not seem to be set properly. Am using serverless-http package.
I tried to put the patch mentioned in issue 116 ( [https://github.com//issues/116] ). But the interesting part is context.res is undefined in the finally block.
How can I proceed fixing this?
The text was updated successfully, but these errors were encountered:
I have a NodeJS application using Node8 and Express 4. Am using CLS to store an API token at the time of login and to retrieve the token further down the line. This token is in session and is set to CLS on every request (so that I dont have to pass the request object to each and every method) so that I can retrieve it at a later time in the nth function.
This is working fine as a node js app. But when I try to run it as a serverless app, the context does not seem to be set properly. Am using serverless-http package.
I tried to put the patch mentioned in issue 116 ( [https://github.com//issues/116] ). But the interesting part is context.res is undefined in the finally block.
How can I proceed fixing this?
The text was updated successfully, but these errors were encountered: