Forums

Getting error Max retries exceeded with url: /api/now/table/incident?sysparm_limit=10 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

Trying to execiute a python code to create incident on service now or fetch incident details from service now but i am getting error Error: requests.exceptions.ProxyError: HTTPSConnectionPool(host='dev66982.service-now.com', port=443): Max retries exceeded with url: /api/now/table/incident?sysparm_limit=10 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

Where as i am able to open the yrl 'https://dev66982.service-now.com/api/now/table/incident?sysparm_limit=10' in my browser.

Please help

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

Same problem: Can u add this url => https://atom.io/packages to whitelist i'm using to get package stats. thanks

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

Hi,

I am getting the same error. Would you be able to white list the following:

https://github.com/uoshvis/python-cryptowatch

Thanks

Rene

I have added api.cryptowat.ch to the whitelist, which is what the documentation said was the correct endpoint for the API.

can u add: https://languagetool.org/api/v2/ to whitelist ? thanks

Please provide a link to the documentation.

Can you add connect.squareupsandbox.com to the whitelist? Im getting the Max retries exceeded with url: /v2/customers error trying to connect to square for in app purchases. Thanks!

Please provide a link to the documentation.

Hi Team,

I'm adding an app with the following API: url = "https://api.samsara.com/fleet/drivers"

here is the link to the doumentation: https://developers.samsara.com/reference/overview

I'm currently getting the error: requests.exceptions.ProxyError: HTTPSConnectionPool(host='api.samsara.com', port=443): Max retries exceeded with url: /fleet/drivers (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

I believe it also needs to be whitelisted. Please advise. Thank you Vojta

All right, we've whitelisted api.samsara.com for you.

Thank you!!!

I'm still getting this error:

52.87.168.8 - - [30/Jun/2022:20:43:01 +0000] "GET / HTTP/1.1" 500 1184 "-" "python-requests/2.27.1"

"52.87.168.8" response-time=2.107
52.87.168.8 - - [30/Jun/2022:20:44:39 +0000] "GET / HTTP/1.1" 500 1184 "-" "python-requests/2.27.1" "52.87.168.8" response-time=2.958
136.226.72.189 - - [30/Jun/2022:20:44:40 +0000] "GET / HTTP/1.1" 500 1184 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "75.144.201.138, 136.226.72.189" response-time=0.002
136.226.72.189 - - [30/Jun/2022:20:44:41 +0000] "GET /favicon.ico HTTP/1.1" 500 1184 "http://csvchecker.pythonanywhere.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "75.144.201.138, 136.226.72.189" response-time=0.001

My code works perfectly locally, its the same exact code as it is on pythonanywhere... any ideas?

Look in your error log for tracebacks that you can use to start debugging.

The above is from my error log... I'm assuming maybe the response time is too long? Not sure if this is related to a permissions issue / block on PythonAnywhere but I'm thinking the issue is one of the 2.

No, that's you access log. Your error log will have more details about the error.

Ah ok good catch, thank you! Found the problem, no issues with API, but the code in this case. Thanks again all!