Hello all,
We are busy with the XERO API but when we enter our server https://www.ourserver.com [example] as the redirect URL we get error 500.
if we enter [https://oauth.pstmn.io/v1/callback] it works 100% (Even when using POSTMAN and Nettalk Auth examples). We do not want to use that as our server for the redirect URL.
Does anybody have an idea what to enter or what to change on our server for the redirect website address to work…
Talk Soon
Marius Nel
I don’t use Xero, so this is just a guess based on how OAuth normally behaves, but the HTTP 500 makes me think the problem is at your end rather than Xero.
The callback URL normally needs to point to an actual endpoint on your NetTalk server that handles the request Xero redirects back with (including the authorization code), rather than just the root URL of the server.
Given that the Postman callback works, I’d check what NetTalk is doing when the request hits your callback URL and whether you have a handler/procedure set up for that route. The server logs may give you a better indication of what’s causing the 500.
Mark