0

I am performing a REST post request using python code. I am trying to communicate with an external server. I am performing several REST calls but a specific one fails. That specific request is the following:

 r = requests.post(url, json=item[1], headers=headers)

I am getting the following error:

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='....euapi', port= ...): 
Max retries exceeded with url: ...(Caused by NewConnectionError
('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at: ... 
Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))

It seems that the server is blocking the connection to me because of the number of connction with it. However, I just perform only one call. Does that make sense? Any idea of how can I overcome this issue?

3
  • is this some kind of external REST API provider? Commented Sep 12, 2017 at 9:00
  • Yes, should have mentioned that. Yes trying to communicate with external sever. Commented Sep 12, 2017 at 9:00
  • Doesn't have a requests count limit? Anything in their documentation? Commented Sep 12, 2017 at 9:05

1 Answer 1

1

It seems that your 'url' value is not correct (address cannot be resolved). Please check it carefully

Similar question here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.