PythonAnywhere Forums

Problem connecting to the dropbox API

Just started playing around with the free version of PythonAnywhere and so far it's great! However, I've got one problem. While trying to create a simple webapp that interfaces with Dropbox I receive the following error:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.dropboxapi.com', port=443): Max retries exceeded with url: /2/files/list_folder (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))

After taking a look at your whitelist it appears that dropboxapi.com isn't in there, could that be the reason? If so is it possible to whitelist that URL?

Thanks for spotting that. Looks like they added a new endpoint while we weren't looking. I have added it to the whitelist.

Thanks for the quick reply! api.dropboxapi.com seems to be working now. I've noticed just now that Dropbox apparently also uses content.dropboxapi.com for communicating with the API. A quick look at the Dropbox API documentation suggests these are the only two endpoints, but I'm not 100% sure. Again thanks for the help.

Looks like there's another one: notify.dropboxapi.com. Presumably for some sort of ... notifications. I've added it and content.

im finding same problem with https://control.msg91.com/api/

please look into the matter

Is there official API documentation for that site? We only whitelist sites with official APIs.

yes there is, it is an api for sending bulk sms

http://api.msg91.com/apidoc/ https://msg91.com/sms-for-developers

.

That looks like the endpoint for their API is api.msg91.com, so I've whitelisted that. I don't see any reference to control.msg91.com, though...

yup that worked for me thank you

Great, thanks for confirming!

I am facing the same issue. This is the error I got:

HTTPSConnectionPool(host='api.projectoxford.ai', port=443): Max retries exceeded with url: /vision/v1.0/ocr?language=en&detectOrientation=True (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))

Could you help please.

Okay- we have added api.projectoxford.ai to the whitelist for you!

Thanks mate, it worked.

I have a same issue when i try connect to chatwork api. (bow)

HTTPSConnectionPool(host='api.chatwork.com', port=443): Max retries exceeded with url: /v2/rooms/64195312/members (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))

That's not on the whitelist. Send a link to the API docs and we'll consider adding it.

hi, i have the problem, in my local terminal its work, but not here:

HTTPSConnectionPool(host='www.packtpub.com', port=443): Max retries exceeded with url: /packt/offers/free-lea rning (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))

hi, i have the problem, in my local terminal its work, but not here:

HTTPSConnectionPool(host='www.packtpub.com', port=443): Max retries exceeded with url: /packt/offers/free-lea rning (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))

Send us a link to the API documentation and we'll add it to the whitelist.

i am also having the same problem HTTPSConnectionPool(host='twilix.exotel.in', port=443): Max retries exceeded with url: /v1/Accounts/none5129/Calls/connect.json (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',)))

api link https://support.exotel.in/support/solutions/folders/92360 you can contact me at shubhamtrivedi95@gmail.com

okay- we have added twilix.exotel.in to the whitelist.

HTTPSConnectionPool(host='api-voice.solutionsinfini.com', port=443): Max retries exceeded with url: /v1/?api_key=A0f3702ddba4f7eb9056dbbd216ee275e&method=voice.call&output=json&numbers=7977347291&play=ivr:21313 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden',))) can you this also sir. api docs is available here https://www.solutionsinfini.com/voice-api

Ok. I've added api-voice.solutionsinfini.com to the whitelist.

Would you please have a look on this problem? ConnectionError: HTTPSConnectionPool(host='www.icc-cricket.com', port=443): Max retries exceeded with url: /rankings/mens/team-rankings/odi (Caused by ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 403 Forbidden',)))

That error message means that you're trying to connect from a free account to a website that's not on our whitelist. If the site has an official documented API then we can add it to the list -- just send us a link to the API documentation.