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
When the Body Response in JSON has an error message ({error : "error_message"}), the resquest method returns nil. Instead of, should return an error message or raise an Exception.
The text was updated successfully, but these errors were encountered:
Foursquare documentation states that such messages are sent back with a HTTP status code of 501. The gem currently doesnt check for this status code. That might explain why it doesnt raise an exception. I unpacked the gem and added the following code. Hopefully it should handle this case
add to the function raise_errors
when 501
raise BadRequest, message
When the Body Response in JSON has an error message ({error : "error_message"}), the resquest method returns nil. Instead of, should return an error message or raise an Exception.
The text was updated successfully, but these errors were encountered: