Title: Using Exceptionless for nodejs causes problems with AWS Lambda functions · Issue #140 · exceptionless/Exceptionless.JavaScript · GitHub
Open Graph Title: Using Exceptionless for nodejs causes problems with AWS Lambda functions · Issue #140 · exceptionless/Exceptionless.JavaScript
X Title: Using Exceptionless for nodejs causes problems with AWS Lambda functions · Issue #140 · exceptionless/Exceptionless.JavaScript
Description: I tried using the exceptionless client for nodejs @exceptionless/node version 3.0.4 as follows: await Exceptionless.startup(c => { c.apiKey = 'blah'; }); When running the program as an AWS Lambda function, it throws the following error: ...
Open Graph Description: I tried using the exceptionless client for nodejs @exceptionless/node version 3.0.4 as follows: await Exceptionless.startup(c => { c.apiKey = 'blah'; }); When running the program as an AWS Lambda f...
X Description: I tried using the exceptionless client for nodejs @exceptionless/node version 3.0.4 as follows: await Exceptionless.startup(c => { c.apiKey = 'blah'; }); When running the program as an A...
Opengraph URL: https://github.com/exceptionless/Exceptionless.JavaScript/issues/140
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using Exceptionless for nodejs causes problems with AWS Lambda functions","articleBody":"I tried using the exceptionless client for nodejs `@exceptionless/node` version `3.0.4` as follows:\r\n\r\n```\r\n await Exceptionless.startup(c =\u003e {\r\n c.apiKey = 'blah';\r\n });\r\n```\r\n\r\nWhen running the program as an AWS Lambda function, it throws the following error:\r\n\r\n```\r\n{\r\n \"errorType\": \"Error\",\r\n \"errorMessage\": \"ENOENT: no such file or directory, mkdir '/var/task/.exceptionless'\",\r\n \"code\": \"ENOENT\",\r\n \"errno\": -2,\r\n \"syscall\": \"mkdir\",\r\n \"path\": \"/var/task/.exceptionless\",\r\n \"stack\": [\r\n \"Error: ENOENT: no such file or directory, mkdir '/var/task/.exceptionless'\",\r\n \" at Object.mkdirSync (node:fs:1398:3)\",\r\n \" at LocalStorage._init (/var/task/node_modules/node-localstorage/LocalStorage.js:174:16)\",\r\n \" at new LocalStorage (/var/task/node_modules/node-localstorage/LocalStorage.js:114:14)\",\r\n \" at NodeExceptionlessClient.startup (file:///var/task/node_modules/@exceptionless/node/dist/NodeExceptionlessClient.js:13:57)\",\r\n \" at ExceptionlessService.startup (file:///var/task/dist/services/exceptionless.service.js:27:29)\",\r\n \" at AppModule.getAppContext (file:///var/task/dist/app.module.js:34:40)\",\r\n \" at async AppModule.getAppService (file:///var/task/dist/app.module.js:40:25)\",\r\n \" at async handle (file:///var/task/dist/index.js:17:24)\",\r\n \" at async Runtime.handler (file:///var/task/dist/index.js:6:5)\",\r\n \" at async Runtime.handleOnceStreaming (file:///var/runtime/index.mjs:1206:26)\"\r\n ]\r\n}\r\n```\r\n\r\nThis is caused by the `NodeExceptionlessClient` class using the `LocalStoragePolyfill`.\r\nIt'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?\r\n\r\n","author":{"url":"https://github.com/kareldonk","@type":"Person","name":"kareldonk"},"datePublished":"2023-10-23T17:56:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/140/Exceptionless.JavaScript/issues/140"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5f774665-69c3-0656-fc5c-fc47578cf8d8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8BF8:3C277B:FF8AD3:15B5D2F:69729B17 |
| html-safe-nonce | 1aab3daaf6cf71f30218059c5e94a28e19ea41523af110b512ddbe574f001c0d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkY4OjNDMjc3QjpGRjhBRDM6MTVCNUQyRjo2OTcyOUIxNyIsInZpc2l0b3JfaWQiOiIyMzIyMzY4MTUxMDU3MjQyOTAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7f4ddaf89047567f3d070d8f64fe701b84758c89aeb13c932ce9f6d4c0046798 |
| hovercard-subject-tag | issue:1957709272 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/exceptionless/Exceptionless.JavaScript/140/issue_layout |
| twitter:image | https://opengraph.githubassets.com/19d174d31b397a05a45f90bdeca45c7791e0d3e2cb9e7121caaa40c4e4361591/exceptionless/Exceptionless.JavaScript/issues/140 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/19d174d31b397a05a45f90bdeca45c7791e0d3e2cb9e7121caaa40c4e4361591/exceptionless/Exceptionless.JavaScript/issues/140 |
| og:image:alt | I tried using the exceptionless client for nodejs @exceptionless/node version 3.0.4 as follows: await Exceptionless.startup(c => { c.apiKey = 'blah'; }); When running the program as an AWS Lambda f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kareldonk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 72bb1c46bb1ebdc0dc83a0a57b64c3b4d668c125d1125d94898213a4c9db8da2 |
| turbo-cache-control | no-preview |
| go-import | github.com/exceptionless/Exceptionless.JavaScript git https://github.com/exceptionless/Exceptionless.JavaScript.git |
| octolytics-dimension-user_id | 5912469 |
| octolytics-dimension-user_login | exceptionless |
| octolytics-dimension-repository_id | 29558878 |
| octolytics-dimension-repository_nwo | exceptionless/Exceptionless.JavaScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 29558878 |
| octolytics-dimension-repository_network_root_nwo | exceptionless/Exceptionless.JavaScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e746f1a3ddb5c0a91290ff3d5889b5247e0e519e |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width