-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpClient] HTTP/2 stream 0 was not closed cleanly #60244
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
Comments
Hello, I was able to reproduce your issue. I believe the main issue here is that many servers (especially those behind strict load balancers or anti-bot tools) have somewhat finicky HTTP/2 implementations. Forcing HTTP/1.1 along with setting the |
No need to switch to HTTP/1.1: just setting a User-Agent fixes it:
This looks related to #50052 Help wanted to figure out a proper user-agent that'd be more mundane for the rest of the world (and celine.com in this case) |
Well, if they have an anti-bot protection, it could make sense that the default User-Agent of symfony/http-client is detected as a bot in their system (which would actually be correct in your case). |
It doesn't work for me without setting the HTTP version (tried also with another user-agent:
Did you try it on your own? |
Yep, I tried with |
Oh! We already have an User-Agent:
So true ! |
I don't know what we can do here? Can we enhance the exception message? If not, let's close this issue |
Closing, the issue is on this stupid antibot. About the error message, not sure we can improve. Curl is likely right: the server behaved not politely. 🤷 |
Symfony version(s) affected
7.2.4
Description
When I request some URL, I get the following error
However, it works well in my browser and with
curl
How to reproduce
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: