-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/node
SDK Version
6.19.7
Framework Version
6.19.7
Link to Sentry event
No response
Steps to Reproduce
When running up an Azure function that initializes Sentry to capture any potential exceptions, the function fails to load - throwing the following exception:
'TypeError: utils_1.PromiseBuffer is not a constructor' Stack: TypeError: utils_1.PromiseBuffer is not a constructor at HTTPSTransport.BaseTransport (D:\home\site\wwwroot\node_modules\@sentry\node\dist\transports\base.js:20:24) at new HTTPSTransport (D:\home\site\wwwroot\node_modules\@sentry\node\dist\transports\https.js:11:28) at NodeBackend._setupTransport (D:\home\site\wwwroot\node_modules\@sentry\node\dist\backend.js:55:16) at NodeBackend.BaseBackend (D:\home\site\wwwroot\node_modules\@sentry\core\dist\basebackend.js:18:32) at new NodeBackend (D:\home\site\wwwroot\node_modules\@sentry\node\dist\backend.js:15:42) at NodeClient.BaseClient (D:\home\site\wwwroot\node_modules\@sentry\core\dist\baseclient.js:52:25) at new NodeClient (D:\home\site\wwwroot\node_modules\@sentry\node\dist\client.js:32:24) at Object.initAndBind (D:\home\site\wwwroot\node_modules\@sentry\core\dist\sdk.js:27:18) at Object.init (D:\home\site\wwwroot\node_modules\@sentry\node\dist\sdk.js:116:12)
Expected Result
Expected that the Sentry.init({...}) (where Sentry is set via Sentry = require("@sentry/node")) call initialises our Sentry instance based on the provided config.
Actual Result
The following exception is thrown upon calling Sentry.init({...}):
'TypeError: utils_1.PromiseBuffer is not a constructor' Stack: TypeError: utils_1.PromiseBuffer is not a constructor at HTTPSTransport.BaseTransport (D:\home\site\wwwroot\node_modules\@sentry\node\dist\transports\base.js:20:24) at new HTTPSTransport (D:\home\site\wwwroot\node_modules\@sentry\node\dist\transports\https.js:11:28) at NodeBackend._setupTransport (D:\home\site\wwwroot\node_modules\@sentry\node\dist\backend.js:55:16) at NodeBackend.BaseBackend (D:\home\site\wwwroot\node_modules\@sentry\core\dist\basebackend.js:18:32) at new NodeBackend (D:\home\site\wwwroot\node_modules\@sentry\node\dist\backend.js:15:42) at NodeClient.BaseClient (D:\home\site\wwwroot\node_modules\@sentry\core\dist\baseclient.js:52:25) at new NodeClient (D:\home\site\wwwroot\node_modules\@sentry\node\dist\client.js:32:24) at Object.initAndBind (D:\home\site\wwwroot\node_modules\@sentry\core\dist\sdk.js:27:18) at Object.init (D:\home\site\wwwroot\node_modules\@sentry\node\dist\sdk.js:116:12)
I can bypass this issue by using an older version of the SDK (6.16.1).