Forums

Temporary failure in name resolution

Hello

I have a always-on task, that runs normally, but for time to time it will give me the following error.

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='skybox.vividseats.com', port=443): Max retries exceeded with url: /services/inventory/sold?invoiceDateFrom=2019-03-16 (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0e56b9a20>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))

what I'm doing in the task is every 30 seconds do a API GET call. At first I suspected that it was a restriction from the API or something like that, but I contacted support from the API and they told me that it wasn't from their side. Here is what they said:

The important part in the error is Temporary failure in name resolution. It might be a problem with their DNS not resolving skybox.vividseats.com or something else, definitely not on our side.

I tried looking up solutions on the internet, some people have had the same issue with droplets as well (here) but the solutions seem to be temporary. I don't want to rush to only do a temporary solution

We had some problem with that on one of the machines. It should be fine now. Let us know if you notice any problems again.

thanks for the fast reply :)

as for now the last error occurred on Mar 18 17:58:59 UTC. will let you know if there is any further error.

In that same topic, how can I get notify when the code breaks? I have some lines inside the script for specific sections, but it's tedious. I was wondering if there is a simpler way to do that

Excellent, thanks for confirming! That matches up with the time that we fixed the problem, so all should continue well now.

We don't have a way to automatically notify you when always-on tasks fail right now, though it's on our to-do list.

Hello.

the code broke once again at March 20 15:56 UTC with error

simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

then started working right away. then it broke at March 21 11:25 UTC. with the previous error in the line above and also the same error as in the first post on this thread

raise ConnectionError(e, request=request)
Mar 21 13:15:28 requests.exceptions.ConnectionError: HTTPSConnectionPool(host='skybox.vividseats.com', port=443): Max retries exceeded with url: /services/inventory/sold?invoiceDateFrom=2019-03-19 (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f870806aa20>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))

Hello,

I also get the "Temporary failure in name resolution" error from time to time, in an always-on task. When I run the same task on my laptop, this problem does not occur, so it seems a PythonAnywhere problem.

Is there any update on this issue?

Thank you!

Edit: I see that there is a more recent conversation here: https://www.pythonanywhere.com/forums/topic/27900/

I will add a post there.

I’m getting this error now, with code that worked perfectly yesterday. Anything going on your side?

Nothing that we know of. Is it persistent?