Tuesday, 2 February 2016

Adwords: socket.error: [Errno 101] Network is unreachable

Hello Everyone,
I'm trying to get Adwords data through API. When I execute the get_customer_campaign.py script, I get the following error message  "socket.error: [Errno 101] Network is unreachable".

I did a "echo $http_proxy" on my terminal which returned this: http://w1proxy-vip.xxxx.xxxx.net:3128. that tells me the proxy is set up right. 

I would really appreciate any suggestions on this issue. Thanks.

here is the list of error messages.
************************************************************************************************************************************************
Traceback (most recent call last):
  File "./get_customer_campaign.py", line 35, in <module>
    CLIENT_CUSTOMER_ID)
  File "./get_customer_campaign.py", line 26, in main
    developer_token, oauth2_client, user_agent, client_customer_id)
  File "/home/gsettu/python_virtual_envs/Adwords/lib/python2.7/site-packages/googleads/adwords.py", line 225, in __in
    self.oauth2_client.Refresh()
  File "/home/gsettu/python_virtual_envs/Adwords/lib/python2.7/site-packages/googleads/oauth2.py", line 164, in Refre
    self.disable_ssl_certificate_validation)))
  File "/home/gsettu/python_virtual_envs/Adwords/lib/python2.7/site-packages/oauth2client/client.py", line 633, in re
    self._refresh(http.request)
  File "/home/gsettu/python_virtual_envs/Adwords/lib/python2.7/site-packages/oauth2client/client.py", line 842, in _r
    self._do_refresh_request(http_request)
  File "/home/gsettu/python_virtual_envs/Adwords/lib/python2.7/site-packages/oauth2client/client.py", line 874, in _dequest
    self.token_uri, method='POST', body=body, headers=headers)
  File "/home/gsettu/python_virtual_envs/Adwords/lib/python2.7/site-packages/httplib2/__init__.py", line 1609, in req
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cache
  File "/home/gsettu/python_virtual_envs/Adwords/lib/python2.7/site-packages/httplib2/__init__.py", line 1351, in _re
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/home/gsettu/python_virtual_envs/Adwords/lib/python2.7/site-packages/httplib2/__init__.py", line 1272, in _co
    conn.connect()
  File "/home/gsettu/python_virtual_envs/Adwords/lib/python2.7/site-packages/httplib2/__init__.py", line 1075, in con
    raise socket.error, msg
socket.error: [Errno 101] Network is unreachable

************************************************************************************************************************************************

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/231071bd-6dcd-4f6b-b6a0-ad4ac0bbf8f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment