-
Notifications
You must be signed in to change notification settings - Fork 14
Invalid response line returned from server #76
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
Noticing the same over here since today. Why are you guys writing your own http client instead of using some http client that ships with Magento itself? Did you guys recently changed your server infrastructure to switch to http/2 maybe? Edit, on another environment I see this error happening only on 11 October 2021. |
Okay, so it appears that at this time, only the staging environment of Paazl runs over HTTP/2:
Production environment is still on HTTP/1.1:
But from the log history I find, it appears this switch to HTTP/2 did happen on production as well on the 11 October for about 1 to 2 hours. |
Good catch, explains why so far only our test environments are currently experiencing this issue. For now we patched this temporarily, replacing the |
Hi @Jaspero95 , @hostep , Many thanks for contacting us. We are indeed aware of this issue and are working on a patch. We are currently testing the outcome of the changes. We will keep you posted about the release of the patch. |
Looks like the issue is fixed in version 1.9.1, so I'll close this issue. Thanks for the quick action! |
HI @Jaspero95 , thanks for your confirmation, was just about to update you on this! About the question regarding the custom Client.; we use the customized CURL client for the Anyway, glad that this is fixed now! 👍 |
After upgrading to version 1.8.0, we see a lot of API errors in the Paazl log on our test environments. As a result, the checkout widget does not load, and as a fallback only the Magento shipping methods show in the shipping step of the checkout.
When adding some additional logging, I found that the error we see is actually the following:
Invalid response line returned from server: HTTP/2 200
This error is thrown in
\Paazl\CheckoutWidget\Model\Api\Http\Client::parseHeaders
:Looks like the client expects the status line in the response to consist of 3 parts, separated by spaces. However, in our case, it only consists of 2 parts ("HTTP/2" and "200"). The original method,
\Magento\Framework\HTTP\Client\Curl::parseHeaders
, does indeed only throw an error if there are less than 2 parts:Is there any reason for this? If I change the "!= 3" to "< 2" like in Magento's CURL client, the widget works just fine.
Paazl version: 1.8.0
Magento version: 2.4.3
The text was updated successfully, but these errors were encountered: