Open 123qweas opened 5 years ago
I have the same still trying to figure this out
I am having the same, as well..
Any help ?
same issue
This is the same issue as #53 except #53 is more specific.
Just resolved #53, please refer to solution over there.
The POST requests from gekkoga are not compatible with gekko's backtest api.
Solved it by deleting the result. I dont know why but when the backtest is not not finding a better solution (score: -5, profit: -5, sharpe: -5) and i run the run.js again, it will break after the first run.
I get this Error sometimes and I cant figure out why. The GA works fine and suddenly I get this Error. I cant recreate it or find any reason why I get this one so randomly. The GA can run for 12 hours and suddenly I get this Error, but sometimes after 5 minutes I get this error. I tried diffrent strats and diffrent parameter, nothing helps. Maybe someone had this Error too and has a solution.
First CMD: { StatusCodeError: 500 - "Internal Server Error" at new StatusCodeError (C:\Users\threi\Gekko\gekko-stable\node_modules\request-promise-core\lib\errors.js:32:15) at Request.plumbing.callback (C:\Users\threi\Gekko\gekko-stable\node_modules\request-promise-core\lib\plumbing.js:104:33) at Request.RP$callback [as _callback] (C:\Users\threi\Gekko\gekko-stable\node_modules\request-promise-core\lib\plumbing.js:46:31) at Request.self.callback (C:\Users\threi\Gekko\gekko-stable\node_modules\request\request.js:185:22) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request. (C:\Users\threi\Gekko\gekko-stable\node_modules\request\request.js:1157:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage. (C:\Users\threi\Gekko\gekko-stable\node_modules\request\request.js:1079:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
name: 'StatusCodeError',
statusCode: 500,
message: '500 - "Internal Server Error"',
error: 'Internal Server Error',
options:
{ url: 'http://localhost:3000/api/backtest',
json: true,
body:
{ watch: [Object],
paperTrader: [Object],
writer: [Object],
tradingAdvisor: [Object],
trader: [Object],
backtest: [Object],
backtestResultExporter: [Object],
performanceAnalyzer: [Object],
valid: true,
RSI_BULL_BEAR_ADX: [Object] },
headers: { 'Content-Type': 'application/json' },
timeout: 3600000,
method: 'POST',
callback: [Function: RP$callback],
transform: undefined,
simple: true,
resolveWithFullResponse: false,
transform2xxOnly: false },
response:
IncomingMessage {
_readableState:
ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: [Object],
length: 0,
pipes: null,
pipesCount: 0,
flowing: true,
ended: true,
endEmitted: true,
reading: false,
sync: true,
needReadable: false,
emittedReadable: false,
readableListening: false,
resumeScheduled: false,
destroyed: false,
defaultEncoding: 'utf8',
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null },
readable: false,
domain: null,
_events:
{ end: [Array],
close: [Array],
data: [Function],
error: [Function] },
_eventsCount: 4,
_maxListeners: undefined,
socket:
Socket {
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: 'localhost',
_readableState: [Object],
readable: false,
domain: null,
_events: [Object],
_eventsCount: 9,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
_bytesDispatched: 1129,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
parser: null,
_httpMessage: [Object],
_idleTimeout: -1,
_idleNext: null,
_idlePrev: null,
_idleStart: 2449889,
_destroyed: false,
Second CMD:
<-- POST /api/backtest xxx POST /api/backtest 500 777ms -
Error: non-error thrown: Child process has died. at Object.onerror (C:\Users\threi\Gekko\gekko-stable\node_modules\koa\lib\context.js:105:40) at
at process._tickCallback (internal/process/next_tick.js:188:7)