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
{{ message }}
Repository navigation
TypeError: Invalid URL is thrown from the Undici integration #8145
No unhandled error coming from the Undici integration
Actual Result
Those unhandled errors started to make our processes crash, immediately after we updated to Sentry v7.50, which enables the Undici integration by default (#7967):
Thanks for your quick answer @AbhiPrasad.
Node v18.16.0.
Unfortunately I haven't find any info about what URL it is nor where the initial call is coming from. An Invalid URL error normally has a input field with the invalid URL, but I think it's not reported anywhere:
new URL('test')
Uncaught TypeError [ERR_INVALID_URL]: Invalid URL
at __node_internal_captureLargerStackTrace (node:internal/errors:490:5)
at new NodeError (node:internal/errors:399:5)
at new URL (node:internal/url:560:13) {
input: 'test',
code: 'ERR_INVALID_URL'
}
changed the title [-]TypeError: Invalid URL is coming from the Undici integration[/-][+]TypeError: Invalid URL is thrown from the Undici integration[/+]on May 17, 2023
To help us debug, is it possible you can set includeLocalVariables: true in your Sentry.init (see more details here: https://blog.sentry.io/local-variables-for-nodejs-in-sentry/) and provide us the values of what request/request.path/request.message was? This would allow us to debug further into why this case is happening.
If you cannot turn this on no worries, we will still work toward reproducing/fixing this! Appreciate the patience.
Activity
AbhiPrasad commentedon May 17, 2023
Hey @sbellone thanks for writing in! Crashing is really bad so we're on it to fix asap!
What Node version are you on? Is there also a way to tell what the request is? Wondering why the URL is invalid here. Thanks!
sbellone commentedon May 17, 2023
Thanks for your quick answer @AbhiPrasad.
Node v18.16.0.
Unfortunately I haven't find any info about what URL it is nor where the initial call is coming from. An Invalid URL error normally has a
inputfield with the invalid URL, but I think it's not reported anywhere:[-]TypeError: Invalid URL is coming from the Undici integration[/-][+]TypeError: Invalid URL is thrown from the Undici integration[/+]AbhiPrasad commentedon May 17, 2023
To help us debug, is it possible you can set
includeLocalVariables: truein yourSentry.init(see more details here: https://blog.sentry.io/local-variables-for-nodejs-in-sentry/) and provide us the values of what request/request.path/request.message was? This would allow us to debug further into why this case is happening.If you cannot turn this on no worries, we will still work toward reproducing/fixing this! Appreciate the patience.
sbellone commentedon May 17, 2023
It's on our prod sorry, we'll stick with v7.49 for now. Thanks again for the quick response.
AbhiPrasad commentedon May 17, 2023
We'll cut a patch release today that should hopefully fix this. Sorry for the inconvenience!