-
Notifications
You must be signed in to change notification settings - Fork 162
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
Approving/rejecting leave request fails with unexpected error #646
Comments
PETOSS-315 |
Thanks for raising an issue, a ticket has been created to track your request |
Thanks for reporting these issues @haydn ! We'll get these things fixed soon and keep you posted. |
@rdemarco-xero I'm no longer seeing this issue or #645. Were some changes made to fix these? When I encountered this bug I was using a demo account — perhaps that demo account was in an invalid state? Testing with a fresh demo account now works just fine. |
@rdemarco-xero Thanks for following this up! Very much appreciated. Do you happen to know if creating leave applications with a "REQUESTED" status is on the cards? It's the last piece of the puzzle we need to make a seamless leave management experience. |
SDK:
Describe the bug
The API endpoints for approving/rejecting leave applications that were recently added the AU payroll fail. Additionally, there's no proper error returned.
To Reproduce
Steps to reproduce the behavior:
xero.payrollAUApi.approveLeaveApplication(TENANT_ID, LEAVE_APPLICATION_ID)
This throws an error with this message:
If I enable Node's http debugging, I can see this for the response:
So it looks like the API is failing to produce a response of any kind.
If I try to approve the leave application via the API explorer it fails without any message (so I assume the same thing is happening). I can successfully retrieve the leave application using the get leave application endpoint.
Logging into Xero and approving the leave application works fine.
Expected behavior
It should approve the leave application (or at least display an error message explaining what's wrong).
Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: