Search found 9 matches

by jwinarske
Sat Feb 06, 2021 11:15 am
Forum: Service Issues
Topic: [20191022] 502 Bad Gateway
Replies: 6
Views: 719

Re: [20191022] 502 Bad Gateway

I have everything but token call exponentially back-off and retry, and each api call will assert if token is empty. That would limit case where subscriber's account languished, as process will terminate if valid token is not received. If they ignore the token status response, the assert will handle ...
by jwinarske
Wed Feb 03, 2021 3:47 pm
Forum: Service Issues
Topic: [20191022] 502 Bad Gateway
Replies: 6
Views: 719

Re: [20191022] 502 Bad Gateway

I implemented Exponential/Back-Off/retry on all the API calls, and so far smooth sailing. Thanks again for the suggestion.
by jwinarske
Tue Feb 02, 2021 11:25 pm
Forum: Service Issues
Topic: [20191022] 502 Bad Gateway
Replies: 6
Views: 719

Re: [20191022] 502 Bad Gateway

Yes you bring a good point. Perhaps the best approach is have a stepped back-off/retry, with the max back-off be the potentially infinite retry rate. It does seem odd I see certain lineups consistently return 502 (three) out of a large group. There could be something up with the path mapping on the ...
by jwinarske
Tue Feb 02, 2021 6:25 pm
Forum: Service Issues
Topic: [20191022] 502 Bad Gateway
Replies: 6
Views: 719

Re: [20191022] 502 Bad Gateway

So far I've seen it with schedules md5 query and lineup map queries.

Almost looks like the first 502 is the start of data page in, as a few attempts later it completes.
by jwinarske
Tue Feb 02, 2021 5:48 pm
Forum: Developer
Topic: Need ProgramID
Replies: 8
Views: 942

Re: Need ProgramID

It does require a valid cert store and the system clock does need to be set correctly.

If it's not the clock setting, check the curl code to see where it looks on your platform. In Linux it checks an environmental variable for the path.
by jwinarske
Tue Feb 02, 2021 5:24 pm
Forum: Service Issues
Topic: [20191022] 502 Bad Gateway
Replies: 6
Views: 719

[20191022] 502 Bad Gateway

I'm seeing somewhat random 502 responses during test.
by jwinarske
Mon Feb 01, 2021 7:01 pm
Forum: Developer
Topic: Need ProgramID
Replies: 8
Views: 942

Re: Need ProgramID

You're missing headers which are referenced in the API docs. Try this with a valid token: curl -L -k -H "token: edb9f1700f0bc29ac46638eaf51f8a0a" -H "User-agent: my_cool_app" -H "Content-type: application/json;charset=UTF-8" -H "Accept-Encoding: deflate,gzip" ...
by jwinarske
Mon Feb 01, 2021 6:50 pm
Forum: Developer
Topic: Rust Grabber
Replies: 0
Views: 294

Rust Grabber

I started work on a Rust Grabber here: https://github.com/jwinarske/schedules-direct-rs/tree/20191022 It's a work in progress and you are welcome to participate. It based on 20191022. Status/Work Items - all of the API methods are functional - exponential back-off / retry on all API calls - TODO: di...
by jwinarske
Sat Jan 30, 2021 7:11 pm
Forum: Developer
Topic: Need ProgramID
Replies: 8
Views: 942

Re: Need ProgramID

Hi Ken, The API is documented here: https://github.com/SchedulesDirect/JSON-Service/wiki/API-20141201 The schedules endpoint will return what you want. You would POST an array of JSON objects in the body, such as these (they need to exist in your configured lineup): "[{"stationID":&qu...