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'm using @sentry/[email protected] (docs) with Netlify Functions (@netlify). It works great when deployed to Netlify, however when running locally with > netlify dev it fails with the following error:
Initially, I thought there's no need to catch the error of
`require('aws-sdk/global')` because this package is always available on
AWS Lambda and even in the `sam local` emulator.
However, in some environments it could be missing. Examples of such
environments is netlify dev or it could be simply a unit-test environment
without any packages.
Fixesgetsentry#3000.
Initially, I thought there's no need to catch the error of
`require('aws-sdk/global')` because this package is always available on
AWS Lambda and even in the `sam local` emulator.
However, in some environments it could be missing. Examples of such
environments is netlify dev or it could be simply a unit-test environment
without any packages.
Fixes#3000.
I'm using
@sentry/[email protected]
(docs) with Netlify Functions (@netlify). It works great when deployed to Netlify, however when running locally with> netlify dev
it fails with the following error:Simple workaround incase others run into the issue:
On a side note, the
Sentry.AWSLambda.wrapHandler
works fine with Netlify dev.The text was updated successfully, but these errors were encountered: