Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Authentication >

Getting 500 error making a request with private app

Started by John Louis Del Rosario -   in API Authentication


I'm trying to use a private application with Google Apps Script + Google Spreadsheets.

Here's my code so far in Apps Script:

This code is provided by the developer community - Xero does not warrant it in any way

where `publickey.cer` is the one generated by this guide.

When I run `test()`, I get a 500 error. AFAICT, my request is authenticated since when I change some of the Authorization parameters, I get a 401.

Is something wrong with my request?
We aren't understanding your request as there is some unexpected characters.
Looks like someone else has tried this also: https://community.xero.com/developer/discussion/31821/

Ronan Quirke (Community Manager)