Python urllib3 failed NewConnectionError: Name or service not known

i can't get urllib3 to work.

 

Screen Shot 2019-07-24 at 2.08.02 PM.png

it always returns Name or Service not known errors

Screen Shot 2019-07-24 at 2.12.33 PM.png

Same code runs perfectly fine outside of Domo.  

 

What gives?

Comments

  • guitarhero23
    guitarhero23 Contributor

    I notice it references some cert where it says cert_required. Is this some cert you're using for authentication, one which is on your computer but would not be in Domo?



    **Make sure to like any users posts that helped you and accept the ones who solved your issue.**
  • certifi provides mozilla root certificate bundle in order to request HTTPS URLs.

    https://urllib3.readthedocs.io/en/latest/user-guide.html#certificate-verification

  • guitarhero23
    guitarhero23 Contributor

    Ahhh ok, I mostly deal with the requests library with Python, thanks for the education.



    **Make sure to like any users posts that helped you and accept the ones who solved your issue.**
  • I do too... but only the urllib3 package is available in Domo.