Script will not run, proxy error

Hi, I am using the basic version to run a script that periodically retrieves quotes from the goodreads website. The code works on my computer but here I'm getting the following error: Cannot connect to proxy. Socket error: Tunnel connection failed: 403 Forbidden.

The source of the error comes from this module:

What could be the issue? Is it possible to white list this website?


If Goodreads has an official public API, then sure, we can whitelist it. I couldn't find any links to documentation for an API on a quick look through the site, but if you can find them then let us know.

Yes, the endpoint is is the one I'm trying to access, I suppose just whitelisting that would work. Here is the full API documentation: Thanks.

Hi there, is on the whitelist now. Let us know if everything works OK?

Thanks, looks like now urllib2 is having problems, here is the error from the log, looks like another 403, but this time from urllib:

Traceback (most recent call last):
File "/home/dkav2015/", line 14, in <module>
response = client.send_message(number, message)
File "/home/dkav2015/.local/lib/python2.7/site-packages/", line 79, in send_message
return self._request(self.SEND_SMS_URL + to_number, values)
File "/home/dkav2015/.local/lib/python2.7/site-packages/", line 40, in _request
connection = urllib2.urlopen(request)
File "/usr/lib/python2.7/", line 127, in urlopen
return, data, timeout)
File "/usr/lib/python2.7/", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/", line 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.7/", line 1184, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error Tunnel connection failed: 403 Forbidden>

2016-01-08 07:14:42 -- Completed task, took 214.00 seconds, return code was 1.

Is it possible to may be whitelist urllib2 as well?

urllib2 is a Python library, not a URL, so whitelisting it doesn't make sense.

In the traceback, I see references to SEND_SMS_URL. I assume you're not sending SMSs through goodreads.

I see. The sms sending API is called Sinchsms and the endpoint looks something like this: where the phone_number is the specific number of the person I'm sending it to. And here are the docs for that API.

OK, we've added that to the whitelist too. Let us know if it works ok?

Yes! It works. Thanks so much. Best customer service EVER.