API 20141201 down?

Post Reply
GameGod
Posts: 60
Joined: Fri Aug 17, 2007 12:26 pm

API 20141201 down?

Post by GameGod » Wed May 20, 2015 7:33 am

Since yesterday afternoon my client is unable to get updates. I'm getting a 500 error.

Code: Select all

Warning: Exception when performing operation POST with url [https://json.schedulesdirect.org/20141201/token]: The remote server returned an error: (500) Internal Server Error.. Retrying...
Warning: Exception when performing operation POST with url [https://json.schedulesdirect.org/20141201/token]: The remote server returned an error: (500) Internal Server Error.. Retrying...
Warning: Exception when performing operation POST with url [https://json.schedulesdirect.org/20141201/token]: The remote server returned an error: (500) Internal Server Error.. Retrying...
Error: Exception when performing operation POST with url [https://json.schedulesdirect.org/20141201/token]: The remote server returned an error: (500) Internal Server Error.
Is this a known issue?

rkulagow
SD Staff
Posts: 915
Joined: Tue Aug 14, 2007 3:15 pm

Re: API 20141201 down?

Post by rkulagow » Wed May 20, 2015 8:33 am

Yes; issues at AWS caused a backlog which is now clearing out; but the root cause is that you should have gotten a "service offline" response and not a 500.

So that's a second bug that I believe I've taken care of. I'll be checking with my own client shortly.

rkulagow
SD Staff
Posts: 915
Joined: Tue Aug 14, 2007 3:15 pm

Re: API 20141201 down?

Post by rkulagow » Wed May 20, 2015 8:58 am

OK, getting a 500 instead of a 400 should now be fixed.

GameGod
Posts: 60
Joined: Fri Aug 17, 2007 12:26 pm

Re: API 20141201 down?

Post by GameGod » Wed May 20, 2015 9:40 am

According to the docs, I expected it to return a service down message in this case.

My client already handles that, and I think it would be better. Returning a 400, for a valid url seems wrong.

Code: Select all

{
    "response": "SERVICE_OFFLINE",
    "code": 3000,
    "serverID": "20141201.web.1",
    "message": "Server offline for maintenance.",
    "datetime": "2015-04-23T00:03:32Z",
    "token": "CAFEDEADBEEFCAFEDEADBEEFCAFEDEADBEEFCAFE"
}

shamrox
Posts: 1
Joined: Wed May 20, 2015 8:48 am

Re: API 20141201 down?

Post by shamrox » Wed May 20, 2015 10:26 am

I am getting the same issue

{
"response": "SERVICE_OFFLINE",
"code": 3000,
"serverID": "20141201.web.1",
"message": "Server offline for maintenance.",
"datetime": "2015-05-20T17:25:12Z",
"token": "CAFEDEADBEEFCAFEDEADBEEFCAFEDEADBEEFCAFE"
}

rkulagow
SD Staff
Posts: 915
Joined: Tue Aug 14, 2007 3:15 pm

Re: API 20141201 down?

Post by rkulagow » Wed May 20, 2015 10:34 am

Updated to send a 200 instead of a 400.

GameGod
Posts: 60
Joined: Fri Aug 17, 2007 12:26 pm

Re: API 20141201 down?

Post by GameGod » Thu May 21, 2015 8:00 am

The error seems to be fixed, but looks like the data is no longer updating.

This is the output as of this morning (~7:30 am PDT)

Code: Select all

Getting listings for 'Cable' (CA04683:X)
Getting station map from legacy service...
Getting listings from service...
Last Data Update: 5/19/2015 5:24:23 AM
Your subscription will expire: 6/21/2016 3:18:29 PM
Server Status: Online

rkulagow
SD Staff
Posts: 915
Joined: Tue Aug 14, 2007 3:15 pm

Re: API 20141201 down?

Post by rkulagow » Thu May 21, 2015 2:43 pm

There's definitely some weirdness at AWS; I'm working with their engineers to isolate the issue.

Post Reply