CDRH / orchid

Rails Engine for site integration with CDRH API
MIT License
3 stars 0 forks source link

5xx HTTP status if API response errors #198

Open techgique opened 4 years ago

techgique commented 4 years ago

Our sites were for all intents and purposes down with the content unavailable from the API due to the intermediate certificate expiration. If we can check that our API responses are failing such that Orchid can tell, it'd be great to return a 5xx HTTP response so site monitoring tools can more easily be made aware something is wrong. I'm not sure if this is possible, but it would be helpful in detecting errors like those seen today.

jduss4 commented 3 years ago

I will play around with this a little. If the problem is our API, I think it would be nice to still have the actual site still up, but just have flash warnings all over that say "site is currently experiencing difficulties, not all content available" or something like that. We could check the API itself if we're doing any kind of site monitoring to see if it's operating.

wkdewey commented 2 years ago

I have run into server errors with the API and it appears that the logs and the displayed pages do warn you. I think Jessica fixed this in her PR.