Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Authentication >

Xero Authentication Redirect Issue

Started by Crystal Gao -   in API Authentication

I am trying to set up a test environment for my web app, so after the Xero Authentication, it will redirect back to the test environment to the specific route. However I kept on encountering this issue:

"Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Wed Jan 20 00:44:23 UTC 2021
There was an unexpected error (type=Internal Server Error, status=500).
Error processing GroovyPageView: Null value was assigned to a property of primitive type setter of chsam.re.PurchaseOrder.xeroConnected"

I have also registered the proper redirect uri on the OAuth 2.0 credentials for Xero Developer.

Can someone please explain to me why it redirected back to an Error page?

Thank you
It looks like your webserver isn't handling the callback. You would need to debug this on your side to find out what is happening.

Your web browser developer console should be able to reveal the full url being used and the arguments being supplied. From there you would need to explore how your app is handling the request.
 

Robin Blackstone (Community Manager)