Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Authentication >

Exception: Correlation failed. Unknown location

Started by Peter Ranson -   in API Authentication

We have been using the XeroOAuth2Sample app as a base for an invoice importer we use. This has been working fine all year, but now when we run it, after logging into Xero we get the following exception:

Exception: Correlation failed.
Unknown location

Exception: An error was encountered while handling the remote login.

Something must have changed with the Xero API.
Hey Peter,

Can you please tell me a little more about your setup? Are you running in a load balanced environment?

Normally a "Correlation failed" error like that happens in a load balanced environment where one instance of your app starts the login flow and another instance of the app receives the callback, and when the instance receives the callback and tries to validate, it can't recognise the request as one that it started.


Matthew Mortimer (Xero Staff)  

Can you please also confirm what browsers the issue happens in? If you're finding the issue in Chrome, it may be due to the samesite cookie changes that Google are in the process of rolling out, and it would be good to try replicate the issue in other browsers.

Matthew Mortimer (Xero Staff)  

Hi Matt,

Thanks for your reply(s). Was chrome causing the issue, worked fine with Firefox.


Peter Ranson