Calendar API: Unable to find the server at accounts.google.com

1,248 views
Skip to first unread message

Alex Fuhr

unread,
Aug 25, 2013, 10:46:47 AM8/25/13
to google-api-p...@googlegroups.com
I am new to using the Calendar API, but when I ran the sample program from the command line, I was directed to the browser to authenticate as expected, but then when I accepted I got this error in the command line:
Traceback (most recent call last):
  File "sample.py", line 133, in <module>
    main(sys.argv)
  File "sample.py", line 102, in main
    credentials = run(FLOW, storage)
  File "C:\Python27\oauth2client\util.py", line 128, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "C:\Python27\oauth2client\tools.py", line 197, in run
    credential = flow.step2_exchange(code, http=http)
  File "C:\Python27\oauth2client\util.py", line 128, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "C:\Python27\oauth2client\client.py", line 1283, in step2_exchange
    headers=headers)
  File "C:\Python27\httplib2\__init__.py", line 1570, in request
    (response, content) = self._request(conn, authority, uri, request_uri, met
d, body, headers, redirections, cachekey)
  File "C:\Python27\httplib2\__init__.py", line 1317, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body,
aders)
  File "C:\Python27\httplib2\__init__.py", line 1258, in _conn_request
    raise ServerNotFoundError("Unable to find the server at %s" % conn.host)
httplib2.ServerNotFoundError: Unable to find the server at accounts.google.com

How would I go about fixing this?

Joe Gregorio

unread,
Aug 28, 2013, 9:03:55 AM8/28/13
to google-api-p...@googlegroups.com
The previous times I've seen this reported it turned out to be a proxy issue. I.e.
the sample was being run on a network that had a proxy, but httplib2 hadn't been
setup to use that proxy.

See the httplib2 example:



--
You received this message because you are subscribed to the Google Groups "Google API Python Client" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-api-python-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages