-
Notifications
You must be signed in to change notification settings - Fork 9.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
Cannot connect to Magento 2 market place #19127
Comments
Hi @terrybakshi. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @terrybakshi do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Summary of the issue Preconditions Environment Information Steps to reproduce Expected and actual results |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
Component: XXXXX label(s) not sure how to do that |
@magento-engcom-team give me 2.2.6 instance |
Hi @engcom-backlog-nazar. Thank you for your request. I'm working on Magento 2.2.6 instance for you |
Hi @engcom-backlog-nazar, here is your Magento instance. |
Hi @terrybakshi i'm not able to reproduce this on clean magento instance. did you use some custom modules ? |
@terrybakshi yes on this instances this page not working. |
i have 3 websites running on 2 different servers and all having same issue. no custom modules installed. |
@terrybakshi seems like you have wrong http protocol versions https://developers.google.com/web/fundamentals/performance/http2/ |
@terrybakshi your hosting provider uses HTTP/1 instead of HTTP//2 |
how do i fix this |
@terrybakshi you should to contact your hosting provider and set to use HTTP/2 |
ok i enabled HTTP/2 in apache modules and restarted the server and still getting same error |
@terrybakshi Try do the cache clean, cache flush, and did you try reproduce this on local instance ? |
Ok did that even run the commands to upgrade, cache clean and cache flush still same issue. |
@terrybakshi hmm very strange, the error you have about the wrong version of http protocols, magento gives you right reponse HTTP/2 200 OK but you server only understand HTTP/1.1 200 ok |
could it be related to cloudflare cache |
unfortunately no i tired clearing cloudflare cache but still no luck |
another issue i am having is when go to make payment with stripe i get error (error occurred on the server. Please try to place the order again.) |
@terrybakshi this may be relate to your configuration on server side. something with http protocols. |
but how can that be possible i have two servers and they are running 3 different websites and all of them have same issue. |
@terrybakshi did you reinstall instance locally ? they may have the same configuration. |
Have the same bug. Looks like for some servers magento returns @engcom-backlog-nazar can you check the headers? Open --- lib/internal/Magento/Framework/HTTP/Client/Curl.php
+++ lib/internal/Magento/Framework/HTTP/Client/Curl.php
@@ -432,6 +432,7 @@
{
if ($this->_headerCount == 0) {
$line = explode(" ", trim($data), 3);
+ \Zend_Debug::dump($data);die;
if (count($line) != 3) {
$this->doError("Invalid response line returned from server: " . $data);
} Then try to login and check response in Chrome network panel. I bet you'll have |
Additionally, Magento uses /vendor/magento/zendframework1/library/Zend/Http/Response.php#517:
|
Hi @vovayatsyuk seems like magento not support HTTP/2 |
@vovayatsyuk this can be a feature request, It will be processed faster if you move this to https://github.com/magento/community-features |
@terrybakshi here is a patch that removes invalid validator: --- a/lib/internal/Magento/Framework/HTTP/Client/Curl.php
+++ b/lib/internal/Magento/Framework/HTTP/Client/Curl.php
@@ -432,7 +432,7 @@ class Curl implements \Magento\Framework\HTTP\ClientInterface
protected function parseHeaders($ch, $data)
{
if ($this->_headerCount == 0) {
$line = explode(" ", trim($data), 3);
- if (count($line) != 3) {
+ if (count($line) < 2) {
$this->doError("Invalid response line returned from server: " . $data);
}
$this->_responseStatus = intval($line[1]); |
@vovayatsyuk You rock! Thank you!! |
@vovayatsyuk where should i apply this patch |
@terrybakshi the file may be in |
@vovayatsyuk Thanks so much it worked |
i think its better magento team should fix this issue |
Hi @terrybakshi. Thank you for your report. The fix will be available with the upcoming 2.3.1 release. |
Hi guys! @vovayatsyuk Is there something else to add to make this work? Thanks! |
Hi @terrybakshi. Thank you for your report. The fix will be available with the upcoming 2.2.8 release. |
This issue still exist in 2.2.7 not fixed in 2.2.7 |
@vovayatsyuk This issue still exist in 2.2.7 not fixed in 2.2.7 is there a patch for this as well, i check they will fix the issue in 2.2.8 but how can we update magento to 2.2.8 if web setup wizard is not working |
@terrybakshi you can try to update Magento via command line interface. The link to the patch that fixes the issue is mentioned in #19127 (comment). |
Magento 2.3 same issue exist in 2.3 not fixed in 2.3 |
Fresh install of 2.3 using Softaculous installer from a2 hosting. Same bug. |
Yes, it’s not fixed yet. These badges “fixed in..” are little confusing. They meant that the bug is fixed in develop branch. As was mentioned above, the fix will be included on the next release. |
I am doing curl connection to third-party API in 2.3 version. And confirm I am getting this error. And patch does work. |
Preconditions (*)
Actual result (*)
The text was updated successfully, but these errors were encountered: