sentry-javascript: https.request is broken by agent-base included by https-proxy-agent

Package + Version

  • @sentry/node

Version:

4.6.6
5.3.0

Description

Some time after 4.1.1 sentry started depending on https-proxy-agent. https-proxy-agent depends on agent-base which does a little nasty thing where it patches over node-core’s https.request here

Problems are:

  1. this patch only supports the 2 parameter form.
  2. this patch does not support any forms where a URL object is passed in (instead of the string) due to its reliance on Object.assign

Docs on node’s https.request

Unfortunately this means any app that depends on @sentry/node also receives this lovely bug.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 18 (11 by maintainers)

Commits related to this issue

Most upvoted comments

TIL 🙃

Hi we are seeing this issue still. Is there any eta on releasing a possible fix? Specifically seeing new relic external calls breaking, as described here: https://github.com/getsentry/sentry-javascript/issues/2155