07-15-2018, 12:49 PM
(This post was last modified: 07-15-2018, 12:51 PM by thegamecat.)
I'm checking what's in "this" in Koa context.js (where the error is) - line 105 and I see this on the server side which seems a bit strange to me:
xxx POST /api/backtest 500 195ms -
{ request:
{ method: 'POST',
url: '/api/backtest',
header:
{ 'content-type': 'application/json',
host: '127.0.0.1:3001',
accept: 'application/json',
'content-length': '1349',
connection: 'close' } },
response:
{ status: 404,
message: 'Not Found',
header:
{ 'access-control-allow-origin': '*',
'access-control-allow-methods': 'GET,HEAD,PUT,POST,DELETE' } },
app: { subdomainOffset: 2, proxy: false, env: 'development' },
originalUrl: '/api/backtest',
req: '<original node req>',
res: '<original node res>',
socket: '<original node socket>' }
Error: non-error thrown: Child process has died.
at Object.onerror (/mnt/d/bash/gekko/node_modules/koa/lib/context.js:106:40)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
xxx POST /api/backtest 500 195ms -
{ request:
{ method: 'POST',
url: '/api/backtest',
header:
{ 'content-type': 'application/json',
host: '127.0.0.1:3001',
accept: 'application/json',
'content-length': '1349',
connection: 'close' } },
response:
{ status: 404,
message: 'Not Found',
header:
{ 'access-control-allow-origin': '*',
'access-control-allow-methods': 'GET,HEAD,PUT,POST,DELETE' } },
app: { subdomainOffset: 2, proxy: false, env: 'development' },
originalUrl: '/api/backtest',
req: '<original node req>',
res: '<original node res>',
socket: '<original node socket>' }
Error: non-error thrown: Child process has died.
at Object.onerror (/mnt/d/bash/gekko/node_modules/koa/lib/context.js:106:40)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)