-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
“client error (SendRequest)” when fetching certain https URLs over proxy #24632
Comments
I'm seeing the same error in two scenarios: const response = await fetch(Deno.args);
console.log(...response.headers);
console.log(await response.text());
export {}; and when explicitly specifying a proxy const client = Deno.createHttpClient({
proxy: {
url: "http://localhost:9904",
},
});
const response = await fetch(
"https://ziglang.org/download/index.json",
{
client,
},
);
|
@moderation I'm not able to repeat the problem when |
Bumping what I found so far: the problem only occurs when TLS is involved - ie. fetching |
I'm also seeing this problem in our CI/CD pipeline that uses proxy environment variables. The strange thing is it can't access local files that are available in the system.
|
@garethj2 can you elaborate a bit? Are you |
As shown in the command, I'm just using I can't reproduce it on my local dev machine but it happens every time in the CI/CD pipeline. I can't speak for how |
Got it, I misunderstood. That |
The issue was pin-pointed to wrong ALPN handling when http2 is used. We are working on a fix. |
@bartlomieju is this also effecting my use case regarding the import? Or is this a separate issue I should raise? |
It's the same issue. |
This issue still persist in 1.45.4 when using socks5 proxy. My code const client = Deno.createHttpClient({
proxy: {
url: "socks5://a:b@c:d",
}
})
await fetch(`https://some.url`, {
client,
}); error
|
@bartlomieju could you please reopen this issue? |
Edit: nvm, I didn't know it was not merged yet to the latest release |
@pagoru you can upgrade to canary version to use the fix ( |
I'm hitting the same (or a similar) error on the Deno 2 RC while creating a bunch of users in Keycloak:
The error happens reliably (every single attempt), though not until after hundreds of requests have succeeded. @bartlomieju, any thoughts about whether this is likely the same issue, or something else? |
I think it's something else, I'd appreciate a separate issue. |
Yeah, I agree with you. I think this is actually what I'm hitting: #21789 Thanks for the reply! |
Also tested with an HTTP proxy other than Tinyproxy and a Socks5 proxy. In both tests Deno threw the same error. The error did not happen in the previous canary version.
The text was updated successfully, but these errors were encountered: