DataSF / open-data-explorer

To promote exploration and use of open data - currently in beta
http://edge.explore.datasf.org
MIT License
12 stars 2 forks source link

Field details api endpoint keeps timing out #404

Closed jasonlally closed 7 years ago

jasonlally commented 7 years ago

@j9recurses

Failing intermittently. Seems to especially have an issue with police department incidents. Getting a 504 Gateway Timeout for /api/v1/fielddetails/

j9recurses commented 7 years ago

I looked at this- I can't recreate the 504. I hit the endpoint a bunch of times in postman and I can't get the 504 http://metadatasf.tk/api/v1/fielddetails/tmnf-yvry

jasonlally commented 7 years ago

So the 504 is thrown when a server fails to return talking to another server, so that indicates the timeout being between the metadata api and Socrata, meaning Socrata wasn't responding.

It looks fine for now, but what we can do is handle 504s in the app layer so that the user has a clear message that the server is currently unreachable.