Closed Duncan-dev1 closed 8 months ago
Unfortunately that's not enough information for me.
Are you able to provide a stack trace?
This is my logs: `[2021-05-06 04:58:07] local.ERROR: Invalid response received from Authorization Server. Expected JSON. {"exception":"[object] (UnexpectedValueException(code: 0): Invalid response received from Authorization Server. Expected JSON. at C:\xampp\htdocs\laravuex\vendor\league\oauth2-client\src\Provider\AbstractProvider.php:539) [stacktrace]
"} `
Okay so somehow it's failing to change the code for an access token. Specifically it's this call that's failing - https://github.com/webfox/laravel-xero-oauth2/blob/master/src/Controllers/AuthorizationCallbackController.php#L27
I suggest editing the vendor directory temporarily to wrap that in a try/catch and dump out the exception and see if you can access the actual response it got.
it still returns the error Invalid response received from Authorization Server. Expected JSON I am starting to think maybe it is something to do with Xero itself,i also cant get an access token when using postman
I observe that if you are using the trial version it gets disconnected after 2,3 days. but if you are using premium account then it works for a longer period of time
I am new to Xero and chose to use this wrapper package and configured as outlined in the docs,after the user chooses the xero app however,my redirect url https://{my-domain}/xero/auth/callback returns this error 'Invalid response received from Authorization Server. Expected JSON.' Everything is at default at the moment Do i have to do some more configurations?Where?