robinbot icon indicating copy to clipboard operation
robinbot copied to clipboard

Error running backtest.js "F in JSON at position 0"

Open ololax123 opened this issue 5 years ago • 0 comments

$ node backtest.js

*** BACKTEST today: 2020-08-25 8:15:50 PM Downloading historical quotes... SyntaxError: Unexpected token F in JSON at position 0 at JSON.parse () at parse_historical (robinbot/quotes.js:93:27) at Request._callback (robinbot/quotes.js:46:9) at Request.self.callback (robinbot/node_modules/request/request.js:185:22) at Request.emit (events.js:315:20) at Request. (robinbot/node_modules/request/request.js:1154:10) at Request.emit (events.js:315:20) at IncomingMessage. (robinbot/node_modules/request/request.js:1076:12) at Object.onceWrapper (events.js:421:28) at IncomingMessage.emit (events.js:327:22) Downloading historical quotes...

I have tried npm update & install & audit fix

$ nodejs -v v12.18.3

$ npm --version 6.14.6

Operating System: Ubuntu 16.04.7 LTS

Any ideas what might be causing this? Tried on fresh install of ubuntu & Ubuntu shell on windows 10. Have added api to conf.js c.quandl_token = "zE4ymuR1APIsYxZXs";

only thing I changed in the conf.js after rename.

ololax123 avatar Aug 25 '20 17:08 ololax123