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
{{ message }}
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
Reporter: randomjunk [Submitted to the original trac issue database at 7.39am, Wednesday, 27th May 2009]
If you do a delete request, but either forget the XML payload, or else your wonderful library strips it for you, the API returns a 500 error complaining of a TypeError.
This is because the from_xml calls don't check for xml.nil? or an empty payload, and then don't rescue the TypeError that ends up being thrown.
This case should be caught and a helpful 400 error returned instead.
The text was updated successfully, but these errors were encountered:
Reporter: randomjunk
[Submitted to the original trac issue database at 7.39am, Wednesday, 27th May 2009]
If you do a delete request, but either forget the XML payload, or else your wonderful library strips it for you, the API returns a 500 error complaining of a TypeError.
This is because the from_xml calls don't check for xml.nil? or an empty payload, and then don't rescue the TypeError that ends up being thrown.
This case should be caught and a helpful 400 error returned instead.
The text was updated successfully, but these errors were encountered: