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 an ApiException is returned by the Xero API, a parsing exception occurs, apparently because it is expecting JSON but getting XML.
It's happening at lib/xeroizer/http_response.rb, line 130:
def raise_error!
begin
error_details = JSON.parse(response.plain_body)
This is the exception that gets raised:
unexpected token at '<ApiException xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ErrorNumber>10</ErrorNumber>
<Type>ValidationException</Type>
<Message>A validation exception occurred</Message>
<Elements>
<DataContractBase xsi:type="Invoice">
<ValidationErrors>
<ValidationError>
<Message>Invoice not of valid status for modification</Message>
</ValidationError>
<ValidationError>
<Message>This document cannot be edited as it has a payment or credit note allocated to it.</Message>
</ValidationError>
</ValidationErrors>
...
Thanks!
The text was updated successfully, but these errors were encountered:
When an ApiException is returned by the Xero API, a parsing exception occurs, apparently because it is expecting JSON but getting XML.
It's happening at lib/xeroizer/http_response.rb, line 130:
This is the exception that gets raised:
Thanks!
The text was updated successfully, but these errors were encountered: