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

Generic "Check Service Status" 500 exception when trying to use updateRepeatingInvoice to delete #368

Open
floodofstatic opened this issue Jul 15, 2024 · 2 comments

Comments

@floodofstatic
Copy link

SDK version 4.29.1 (not currently able to upgrade due to javax/jakarta switchover).

When calling updateRepeatingInvoice to delete a Repeating Invoice I get the following exception:

api.updateRepeatingInvoice(xeroAccessToken, xeroTenantId, invoiceId, repeatingInvoices, idempotencykey);

com.xero.api.XeroServerErrorException: An error occurred in Xero. Check the API Status page http://status.developer.xero.com for current service status.
        at com.xero.api.XeroApiExceptionHandler.execute(XeroApiExceptionHandler.java:211)
        at com.xero.api.client.AccountingApi.updateRepeatingInvoice(AccountingApi.java:32416)
        ...

I was using it to try and change the status to DELETED, which is a permitted operation for the endpoint.

I have no problems using other methods in the SDK, including createInvoices, so I don't think authentication or scope are to blame, though I'd a more specific message as I've seen before.

I have tried sending what I believe to be an equivalent manual HTTP POST request to the API outside of the SDK, and that has worked without issue, which leads me to believe it may be SDK related.

Any insight would be much appreciated.

To Reproduce
Steps to reproduce the behavior:

  1. Get a Repeating Invoice via getRepeatingInvoice
  2. Change the status to DELETED
  3. Try to save it using updateRepeatingInvoice

Expected behavior
To receive no exceptions, and successfully delete the invoice.

Copy link

PETOSS-477

Copy link

Thanks for raising an issue, a ticket has been created to track your request

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

1 participant