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 am using slonik as a postgres-client to talk to my database. It is being used in 2 places -
Inside a Graphql query which runs on serverless (lambda on aws).
Directly fetching data from node cli scripts.
In the first scenario, I get an error message - ENOENT: no such file or directory, open '<PATH TO>/.esbuild/.build/src/handlers/mappings.wasm'. Which suggests that it is looking for that file in order to capture stack trace.
also the order for plugins in correct in serverless
In the second scenario, it works like a charm. I am able to talk to my db and also get the stack trace which is super helpful.
Possible Solution
Not sure about the possible solution but I can temporarily disable slonik to capture stack trace by setting captureStackTrace: false while creating pool.
Logs
Unable to produce a details log because captureStackTrace itself is throwing error.
The text was updated successfully, but these errors were encountered:
@gajus is it fine to completely disable captureStackTrace? If it's enabled, it prevents us from enable source maps for NodeJS in production. We are now disabling it entirely, but was wondering if there're any drawbacks.
This can be reproduced with --enable-source-maps NodeJS flag (and using e.g. Webpack to generate source-map files with devtool: 'sourrce-map'.
@gajus is it fine to completely disable captureStackTrace? If it's enabled, it prevents us from enable source maps for NodeJS in production. We are now disabling it entirely, but was wondering if there're any drawbacks.
Current Behaviour
I am using slonik as a postgres-client to talk to my database. It is being used in 2 places -
In the first scenario, I get an error message -
ENOENT: no such file or directory, open '<PATH TO>/.esbuild/.build/src/handlers/mappings.wasm'
. Which suggests that it is looking for that file in order to capture stack trace.esbuild config in serverless -
also the order for plugins in correct in serverless
In the second scenario, it works like a charm. I am able to talk to my db and also get the stack trace which is super helpful.
Possible Solution
Not sure about the possible solution but I can temporarily disable slonik to capture stack trace by setting
captureStackTrace: false
while creating pool.Logs
Unable to produce a details log because
captureStackTrace
itself is throwing error.The text was updated successfully, but these errors were encountered: