Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML style response #5

Open
rctneil opened this issue Mar 13, 2023 · 3 comments
Open

HTML style response #5

rctneil opened this issue Mar 13, 2023 · 3 comments

Comments

@rctneil
Copy link

rctneil commented Mar 13, 2023

Hey,

How can I deal with this situation?

https://www.flickr.com/groups/api/discuss/72157721918336667/

@cyclotron3k
Copy link
Owner

Hi @rctneil - is there more to the error message? It's difficult to tell if it's a rate limiting error, or just a 500 from Flickr's servers falling over

@cyclotron3k
Copy link
Owner

The gem doesn't raise a "Flickr::FailedResponse" error when it receives HTML instead of JSON from Flickr's server; it's raising a "JSON::ParserError", so, for now, you'll need to rescue that as well.

I'm interested to find out why we're getting HTML instead of JSON, and I think we should handle unexpected HTML better.

@cyclotron3k
Copy link
Owner

@rctneil Do you have more information on how you were able to trigger this issue? Were you hitting API limits, or maybe requesting resources that don't exist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants