This app is derived from Meteor Todos example app and aim at showing the issue with Partner App
Before running the app, set your Xero api keys as follows:
- in settings.json, set
consumerKey
andconsumerSecret
- place your
privatekey.pem
in/private/xero/privatekey.pem
- set your app userAgent in
/imports/api/xero/server/xero.js:14
npm start
Once the app is running, create an account with email/password and sign in. Connect with Xero using the button on the left.
The page body will contain two buttons:
GET ORGANISATION NAME
: will call thexeroClient.core.organisations.getOrganisation()
method. This one works fine.GET CONTACTS FROM XERO
: will call thexeroClient.core.contacts.getContacts()
method. This one will raise an error:UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): RangeError: Maximum call stack size exceeded
.