Closed nalo26 closed 4 months ago
What you encountered could certainly be improved (UX).
The server claim to support HTTP/3 but does not seems to be capable to accept connecting using QUIC.
If you inspect the response headers, you will notice the presence of Alt-Svc header that specify « h3=… »
you may simply disable http3 or raise an issue to the server admin.
The first attempt is done with http 2 and the second one is attempted using http3 via auto upgrade as per documented.
With that said, the error message should be more helpful. I’ll do that asap.
Regards,
@Ousret that was it! Thanks a lot for the fast answer!
It's been a long time I wanted to try
niquests
as a replacement of the well knownrequests
module. Today I needed an async GET, so it was the perfect time to give this project a try.However, I rapidly encountered the following issue: when using the module to GET on the API URL I need, the request works the first time it hits the domain. But at the second time, whatever the endpoint is (could be the exact same URL, or with another parameter or route), it raises an error (see below).
I discovered the issue being on an async session. But after testing, I saw that it still was the same without the session, and without the async as well.
I tried repeating the request multiple times, still get an error each time.
I also tried on well-known domains (like google.com), and it suddenly works like a charm!
I tried the not-working URL with
requests
, and there's no problem.I hypothesize that this is due to the 4-part API URL, but I don't know the reason at all.
Expected Result
Each requests to the given domain to work.
Actual Result
The following error:
Reproduction Steps
System Information
Note : also tested on my VPS (Debian 12 bookworm), and it does exactly the same.