-
-
Notifications
You must be signed in to change notification settings - Fork 991
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
Proxying doesn't work with mitmproxy
#2294
Comments
@zicklag any ideas? |
Yes, that's the software that I used. You can just start it inside a terminal without any configuration and it will create a proxy for you at http://localhost:8080. The certificate is under I was able to download packages via |
I just looked at the code and I found out the reason for match ureq::get(&url).call() {
Ok(response) => response
.into_json()
.map_err(|err| eco_format!("unable to parse JSON response: {err}")),
Err(ureq::Error::Status(404, _)) => {
bail!("release not found (searched at {url})")
}
Err(err) => bail!("failed to download release ({err})"),
} When downloading the tag, the proxy agent isn't being used. Downloading the release itself should be fine as it uses the I still don't know why |
Oh.. well, it's an easy fix at least. |
Yeah, I think that's the only mystery, now. I can confirm that downloading packages works through a squid proxy, so there must be some nuance in the format of the proxy request that is made by the I think it might be an issue for the |
I've changed the release fetching to use the agent, too, so the only remaining issue is the mitmproxy thing. |
mitmproxy
Description
Downloading packages via
compile
fails. Forupdate
, the proxy isn't being used at all.Status 400 is coming from
mitmproxy
. It doesn't understand the HTTP request for some reason.Below are all HTTP requests that successfully passed through
mitmproxy
:Reproduction URL
No response
Operating system
Linux
Typst version
The text was updated successfully, but these errors were encountered: