DEV Community

Aashish Chaubey 💥⚡️
Aashish Chaubey 💥⚡️

Posted on

httplib2.ServerNotFoundError: Unable to find the server at www.googleapis.com

I am using Docker to run my python Application and it internally uses YouTube's Data API and I face a similar issue. Can someone please help me solve this?

When i try to fetch the details of gmail using google-api's (googleapiclient,oauth2client), i am getting below error:

 File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/google_api_python_client-1.7.8-py2.7.egg/googleapiclient/_helpers.py", line 130, in positional_wrapper

  File "/usr/local/lib/python2.7/site-packages/google_api_python_client-1.7.8-py2.7.egg/googleapiclient/discovery.py", line 224, in build

  File "/usr/local/lib/python2.7/site-packages/google_api_python_client-1.7.8-py2.7.egg/googleapiclient/discovery.py", line 274, in _retrieve_discovery_doc
  File "/usr/local/lib/python2.7/site-packages/httplib2-0.12.1-py2.7.egg/httplib2/__init__.py", line 2135, in request
    cachekey,
  File "/usr/local/lib/python2.7/site-packages/httplib2-0.12.1-py2.7.egg/httplib2/__init__.py",

Top comments (1)

Collapse
 
aashish profile image
Aashish Chaubey 💥⚡️

I figured out the solution and found out that RHEL apparently ships with podman and my container was running on podman so the solution was simple, install docker and do the procedure again.