My API's stopped working suddenly Yesterday.
It is throwing errors like this:
Uncaught ShopifyCurlException: OpenSSL SSL_read: Connection reset by peer.
"OpenSSL SSL_read: Connection reset by peer"
"OpenSSL SSL_connect: Connection reset by peer in connection"
I tested TLS version on my server from https://www.ssllabs.com/ssltest/analyze.html?d=webappslive.com
It is showing the message that "This server supports TLS 1.3."
I checked the API Announcements link https://ecommerce.shopify.com/c/api-announcements/t/shopify-is-deprecating-its-support-of-tls-1-0-an... and in that post Ryan had told that we need to upgrade TLS version to 1.2.
But my server is supporting TLS 1.3. So do we need to have exact TLS 1.2 or we can have TLS 1.2 or above?
Thank you for helping
I contacted to my server provider (Bluehost) to know about TLS on server. They replied me that "on our server, the TLS version is already set to 1.2."
So why I am not able to connect api's. I am using same code from last 4-5 years but suddenly now api's stopped and it starts giving errors like
"OpenSSL SSL_read: Connection reset by peer".
Thank you for helping.
Today I tried to run the api code on localhost XAMPP. Everything worked fine on XAMPP. I tried to fetch around 11952 products from one of my test store. I am using cursor based pagination also and I was able to get all products without any problem on XAMPP. I tested it several times on XAMPP & I did not get any "OpenSSL SSL_read: Connection reset by peer" error etc on XAMPP.
But it is not working on live servers, I am running code on Bluehost server, as per their reply they said everything is OK on server side.
But since my code worked on XAMPP, so today I thought to purchase another server space on Hostgator to test the code. But bad luck, it failed on Hostgator server also. I got same connection reset error. How could it work fine on localhost XAMPP server and failing on live servers?
I then again came back to Bluehost server and tried to remove curl part of code and tried to fetch products through simple file_get_contents and json_decode method from url. Along with this I also used get_headers method to find page_info string to create cursor based pagination. But it also gave me same kind of error: "PHP Warning: get_headers(): SSL: Connection reset by peer".
I am struggling very hard to resolve it.
Shopify staff members, please take a look on it and guide me on it please.
I am still waiting for someone to add a help on this issue. I had struggled in weekends as mentioned in above post.
My users are not able to access app because app is not able to connect to Shopify API's. It is still getting same "Connection reset by peer" error.
Whenever I am trying to connect Shopify API, it is giving "Connection reset by peer" error.
If I am using get_headers($url) method to find page_info string to create cursor based pagination. It is also giving me same kind of error: "PHP Warning: get_headers(): SSL: Connection reset by peer".
Can any Shopify staff member help me here to find that why I am not able to connect Shopify API's?
What can be the reason behind "Connection reset by peer" error?
Did you end up fixing this "Connection reset by peer" error? We also encountered this issue and have no clue either...
Sometimes Shopify API is not quite stable you can request for several times to see if it works. If not, please try to request through proxy IP.
Best of luck.
Have you created a collection on your online store and experienced an issue with adding yo...By Ollie Aug 24, 2022
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...By Ollie Jul 28, 2022