You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a WordPress API module in NodeJS ( https://github.com/WP-API/node-wpapi )
When I make API requests ; it gets the json data , but causes an error .
When I open the stacktrace :
{ SyntaxError: Unexpected token in JSON at position 0 at JSON.parse (<anonymous>) at IncomingMessage.res.on (C:\cde\fn\notification-stream\node_modules\superagent\lib\node\parsers\json.js:11:35) at IncomingMessage.emit (events.js:187:15) at endReadableNT (_stream_readable.js:1092:12) at process._tickCallback (internal/process/next_tick.js:63:19)
When I examine the file superagent/lib/node/parsers/json.js , I found a bug in how it parses JSON .
The text was updated successfully, but these errors were encountered:
I am using a WordPress API module in NodeJS ( https://github.com/WP-API/node-wpapi )
When I make API requests ; it gets the json data , but causes an error .
When I open the stacktrace :
{ SyntaxError: Unexpected token in JSON at position 0 at JSON.parse (<anonymous>) at IncomingMessage.res.on (C:\cde\fn\notification-stream\node_modules\superagent\lib\node\parsers\json.js:11:35) at IncomingMessage.emit (events.js:187:15) at endReadableNT (_stream_readable.js:1092:12) at process._tickCallback (internal/process/next_tick.js:63:19)
When I examine the file
superagent/lib/node/parsers/json.js
, I found a bug in how it parses JSON .The text was updated successfully, but these errors were encountered: