Comments (2)
Yes, this is because the data coming back for oauth errors is not valid JSON.
This is going to be because your oauth token is either invalid, expired, or the signature validation has failed.
To debug I suggest you sign up for a runscope account and place the runscope bucket ID in your config.json. This will allow you to log the requests and see the exact content so you can resolve your issue.
In the mean time I'll figure out a way to convert the non-json to json for responding.
from xero-node.
Thank you, I was able to find and fix my issue.
I figured that the returned results would have been an error of some description.
from xero-node.
Related Issues (20)
- Adding Employee Details and Allocating Timesheets with UK Payroll API HOT 3
- AU Payroll: New 'REQUESTED' and 'REJECTED' values are missing from the LeavePeriodStatus type HOT 2
- Using ifModifiedSince with getLeaveApplicationsV2 causes an error HOT 3
- The LeaveApplicationV2 endpoint doesn't include LeaveTypeID HOT 3
- Approving/rejecting leave request fails with unexpected error HOT 6
- RPError: JWT not active yet, now 1691734526, nbf 1691734597 HOT 3
- idempotencyKey parameter introduced in 4.36.0 breaks existing calls to accounting api HOT 10
- Syntax Error in Readme Documentation HOT 3
- Project API Types are not exported at the top (module) level. HOT 9
- Cannot compile: HOT 3
- Url is not saved on invoice create HOT 2
- error TS7016: Could not find a declaration file for module 'request'. HOT 4
- Tracking not exposed on Typescript invoice object HOT 2
- The request package used by Node 4.3.0 is depreciated HOT 6
- "Missing function" HOT 3
- `Cannot read properties of undefined (reading 'defaultPort')` when used with `nock` HOT 10
- The type of Contact of "xero-node" module is not matched with API docs. HOT 2
- Converting circular structure to JSON HOT 3
- Switch from `request` to `axios` is a breaking change? HOT 7
- "createInvoiceAttachmentByFileName" Create attachment but not correct content file HOT 23
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xero-node.