Skip to content
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

Cannot read property 'globalAgent' of undefined #4036

Closed
4 of 9 tasks
deammer opened this issue Oct 7, 2021 · 2 comments · Fixed by #4037
Closed
4 of 9 tasks

Cannot read property 'globalAgent' of undefined #4036

deammer opened this issue Oct 7, 2021 · 2 comments · Fixed by #4037

Comments

@deammer
Copy link
Contributor

deammer commented Oct 7, 2021

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

6.13.0

Description

When we upgraded from @sentry/.node 6.9.0 to 6.13.2, we experienced the following error in our serverless environment (we use puppeteer to render images in a lambda worker):

TypeError: Cannot read property 'globalAgent' of undefined
  at normalizeRequestArgs (/var/task/build/functions/isolated.js:67595:203),
  at wrappedMethod (/var/task/build/functions/isolated.js:67375:96),
  at initAsClient (/var/task/node_modules/ws/lib/websocket.js:566:31),
  at new WebSocket (/var/task/node_modules/ws/lib/websocket.js:71:7),
  at /var/task/node_modules/puppeteer/lib/cjs/puppeteer/node/NodeWebSocketTransport.js:26:24,
  at new Promise (<anonymous>),
  at Function.create (/var/task/node_modules/puppeteer/lib/cjs/puppeteer/node/NodeWebSocketTransport.js:25:16),
  at BrowserRunner.setupConnection (/var/task/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:167:88),
  at runMicrotasks (<anonymous>),
  at processTicksAndRejections (internal/process/task_queues.js:95:5)

We tracked it down to #3950, where the httpModule.globalAgent field can be undefined.

@LaszloDev
Copy link

LaszloDev commented Oct 27, 2021

The issue still seams to happen with the latest version (@sentry/node v6.13.2).
Is there a ETA for when will this merge released as NPM package?

@kamilogorek
Copy link
Contributor

We're planning a release next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants