You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that occasionally the Readability API has a 502 error instead of a json response.:
<html><head><title>502 Bad Gateway</title></head><bodybgcolor="white"><center><h1>502 Bad Gateway</h1></center><hr><center>nginx/1.4.6 (Ubuntu)</center></body></html>
The response.body is then an actual HTML body instead of a JSON string, so this code:
The error:
I've noticed that occasionally the Readability API has a 502 error instead of a json response.:
The
response.body
is then an actual HTML body instead of a JSON string, so this code:passes an unparsable string to
MultiJson.decode
, resulting in this error:Possible error catching:
MultiJson::ParseError
Possible error handling:
ReaditError
The text was updated successfully, but these errors were encountered: