question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: <urlopen error [Errno 54] Connection reset by peer>

See original GitHub issue

I am getting “Error: <urlopen error [Errno 54] Connection reset by peer>” when making a simple get request. Python 2.7 and ShopifyAPI 3.1.0.

I have tried make the request using requests library and I was receiving the same error. After install requests[security], I could make the request using requests library.

So probably it’s a SSL issue.

        shop_url = u"https://%s:%s@subscribe-and-save-2.myshopify.com" % (u"XXX", u"XXX")
        shopify.ShopifyResource.set_site(shop_url)
        shop = shopify.Shop.current()
        print shop

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
dave4jrcommented, Dec 6, 2019

What’s the status with this? Was this ever addressed?

0reactions
thecreator232commented, Nov 12, 2018

I’m facing the same issue, I tried to call the URL from the postman and it works. I’m working on Python 3.5.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Python3 Connection reset by peer - Stack Overflow
URLError urlopen error [Errno 54] Connection reset by peer ... An auto-bot detection mechanism is most likely dropping your connection.
Read more >
URLError: <urlopen error [Errno 54] Connection reset by peer ...
It seems like a network error which can be caused by many problems. I'd suggest to try to run the command again, and...
Read more >
[Errno 54] Connection reset by peer - API Issues
Hi, We are trying to scrape company numbers from director IDs with the API, but keep getting these below errors after it runs...
Read more >
ConnectionResetError: Errno 54 Connection reset by peer
This message indicates the remote site - here, the client, your browser - reset the connection before the response could be fully sent....
Read more >
[Errno 54] Connection reset by peer - Python Forum
When executing the code the script stops with the error message "[Errno 54] Connection reset by peer" at the pd.read_csv line.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found