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.

SSL: CERTIFICATE_VERIFY_FAILED

See original GitHub issue

Hi!

I have a private app set up with shopify and I’m trying to make a Django app that uses the Shopify Python API however I can’t seem to get passed step 6 in the Getting Started instructions!

shop_url = "https://%s:%s@SHOP_NAME.myshopify.com/admin" % (API_KEY, PASSWORD)
shopify.ShopifyResource.set_site(shop_url)
shop = shopify.Shop.current()

Above is all I have put in, obviously with my shop name and api credentials filled in, however when it gets to that last line I get an SSL error:

pyactiveresource.connection.Error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)>

I have a decent understanding of what the error is but I don’t understand why I’m getting it when I know for a fact I’m using the right credentials and following the instructions properly.

Anyone have an ideas?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
clintonbcommented, Feb 12, 2018

I have the same issue on macOS with Python 3.6.0. This solution—detailed at https://stackoverflow.com/a/42098127/592820—resolved the problem for me:

Run /Applications/Python\ 3.6/Install\ Certificates.command from a terminal.

3reactions
KevinMindcommented, Feb 12, 2018

@clintonb You da bomb! I also had no problems with 2.7 but, when switched to 3.6 your fix worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - urllib and "SSL: CERTIFICATE_VERIFY_FAILED" Error
If you have installed Python 3.6 on OSX and are getting the "SSL: CERTIFICATE_VERIFY_FAILED" error when trying to connect to an https:// site,...
Read more >
What is an SSL 'Certificate_Verify_Failed' Error and How Do I ...
SSL certificate_verify_failed errors typically occur as a result of outdated Python default certificates or invalid root certificates. If you're a website owner ...
Read more >
How to Fix SSL: CERTIFICATE_VERIFY_FAILED Error In ...
Once a browser receives the SSL certificate from the server, it will chain back to the root. It tracks the certificate chain back...
Read more >
4 Ways to fix SSL: CERTIFICATE_VERIFY_FAILED in Python
If you receive the “certificate_verify_failed” error when trying to connect to a website, it means that the certificate on the website is not...
Read more >
PIP connection Error : SSL CERTIFICATE VERIFY FAILED
The most common issue in installing python package in a company's network is failure of verification of SSL Certificate. Sometimes company blocks some ......
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