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
Hello, today I got an issue where undici was throwing an error: InvalidArgumentError: invalid protocol
This turned out to be due to having my http_proxy as http_proxy=proxy.company.com:port
Instead, undici was expecting it to have http:// at the start. http_proxy=http://proxy.company.com:port
I was able to figure out the issue by looking at the code, but this is not a good user experience. I've been using my proxy without the http:// prefix for years so this was a bit strange. I don't know enough about this library to say if URLs without http:// or https:// should be accepted, but at the very least there should be a more descriptive error message saying that you're missing the http prefix.
The text was updated successfully, but these errors were encountered:
Hello, today I got an issue where undici was throwing an error: InvalidArgumentError: invalid protocol
This turned out to be due to having my http_proxy as http_proxy=proxy.company.com:port
Instead, undici was expecting it to have http:// at the start. http_proxy=http://proxy.company.com:port
undici/lib/core/util.js
Lines 81 to 83 in 4885b11
I was able to figure out the issue by looking at the code, but this is not a good user experience. I've been using my proxy without the http:// prefix for years so this was a bit strange. I don't know enough about this library to say if URLs without http:// or https:// should be accepted, but at the very least there should be a more descriptive error message saying that you're missing the http prefix.
The text was updated successfully, but these errors were encountered: