Closed richardsimko closed 6 months ago
@richardsimko Thanks for the detailed report and test case. We'll take a look asap.
we are running into the very same issue with got
Same issue here.
Any update on this?
Released in 2.26.4. https://github.com/rollbar/rollbar.js/releases/tag/v2.26.4. Thank you @jaridmargolin .
Repro repo: https://github.com/richardsimko/rollbar-got-issue
Using
autoInstrument
does not work at all with the very popular http request librarygot
.When running the referenced repo with
ROLLBAR_ACCESS_TOKEN=<token> node test.js
it produces the following error:I believe the issue is in
urlHelpers
since it's assigningcb = options
without checking thatoptions actually is a function
. Removing the assignment ofcb = options
does solve the issue, however I don't know what implications that might have for other things so I don't want to submit a PR with that as the solution.https://github.com/rollbar/rollbar.js/blob/e964ecbdb16a4d2b8b5feaa8b70a2ec327648ed0/src/server/telemetry/urlHelpers.js#L20