-
-
Notifications
You must be signed in to change notification settings - Fork 23
Using Exceptionless for nodejs causes problems with AWS Lambda functions #140
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
Comments
That is setting up localstorage, there is also an InMemoryStorage implementation. I believe you can do something like: await Exceptionless.startup(c => {
c.apiKey = 'blah';
c.services.storage = new InMemoryStorage();
}); |
Hmm... that stinks. Guess we should put this line in a try catch and fallback to using InMemoryStorage if it fails. Could you create a PR for that? |
Should just need to try catch it. If it fails then it will default to in memory out of the box |
If I try/catch it, the Node* plugins being added on the following lines after line 22 won't have been added. I'm assuming that they are important and that I want to use them of course. |
@kareldonk This has been fixed in https://github.com/exceptionless/Exceptionless.JavaScript/releases/tag/v3.0.5 Please let us know if you have any questions. |
Thanks, that was quick. I already deployed it and it works. |
I tried using the exceptionless client for nodejs
@exceptionless/node
version3.0.4
as follows:When running the program as an AWS Lambda function, it throws the following error:
This is caused by the
NodeExceptionlessClient
class using theLocalStoragePolyfill
.It's not possible to write to the partition where the script runs on AWS Lambda as far as I know. I couldn't find a way to override the usage of the
LocalStoragePolyfill
to use memory storage either. Am I overlooking something or is this an issue that needs to be addressed?The text was updated successfully, but these errors were encountered: