SyntaxError: Unexpected token i in JSON at position 17
at JSON.parse ()
at formatJSON (C:\Users\Nathaniel Rubin\Desktop\shopify-monitor\src\classes\Shopify.js:118:15)
at Object.Shopify.parseVariantsYS (C:\Users\Nathaniel Rubin\Desktop\shopify-monitor\src\classes\Shopify.js:144:24)
at Request.request [as _callback] (C:\Users\Nathaniel Rubin\Desktop\shopify-monitor\src\classes\Shopify.js:76:12)
at Request.self.callback (C:\Users\Nathaniel Rubin\Desktop\shopify-monitor\node_modules\request\request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (C:\Users\Nathaniel Rubin\Desktop\shopify-monitor\node_modules\request\request.js:1157:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at Gunzip. (C:\Users\Nathaniel Rubin\Desktop\shopify-monitor\node_modules\request\request.js:1079:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at Gunzip.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
When I start the monitor, I get this error and it stops working. How should I fix it.
SyntaxError: Unexpected token i in JSON at position 17 at JSON.parse ()
at formatJSON (C:\Users\Nathaniel Rubin\Desktop\shopify-monitor\src\classes\Shopify.js:118:15)
at Object.Shopify.parseVariantsYS (C:\Users\Nathaniel Rubin\Desktop\shopify-monitor\src\classes\Shopify.js:144:24)
at Request.request [as _callback] (C:\Users\Nathaniel Rubin\Desktop\shopify-monitor\src\classes\Shopify.js:76:12)
at Request.self.callback (C:\Users\Nathaniel Rubin\Desktop\shopify-monitor\node_modules\request\request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (C:\Users\Nathaniel Rubin\Desktop\shopify-monitor\node_modules\request\request.js:1157:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at Gunzip. (C:\Users\Nathaniel Rubin\Desktop\shopify-monitor\node_modules\request\request.js:1079:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at Gunzip.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
When I start the monitor, I get this error and it stops working. How should I fix it.