Hello, I am trying to make a rest call from Backend module to my app hosted at ’
http://localhost:8000/'. I keep getting the following error -
{
FetchError: request to http://localhost:8000/ failed, reason: connect ECONNREFUSED 127.0.0.1:8000
at ClientRequest. < anonymous > (/dynamic-modules/edm_root / cb294420 - e7bb - 11e8 - 82 f1 - f96f97dc1bc0 / node_modules / node - fetch / index.js: 133: 11)
at emitOne(events.js: 116: 13)
at ClientRequest.emit(events.js: 211: 7)
at Socket.socketErrorListener(_http_client.js: 387: 9)
at emitOne(events.js: 116: 13)
at Socket.emit(events.js: 211: 7)
at emitErrorNT(internal / streams / destroy.js: 64: 8)
at _combinedTickCallback(internal / process / next_tick.js: 138: 11)
at process._tickDomainCallback(internal / process / next_tick.js: 218: 9)
name: ‘FetchError’,
message: ‘request to http://localhost:8000/ failed, reason: connect ECONNREFUSED 127.0.0.1:8000’,
type: ‘system’,
errno: ‘ECONNREFUSED’,
code: ‘ECONNREFUSED’,
errorGroup: ‘User’
}
My app is a simple django app with CORS enabled. I verified the endpoint works with POSTMAN. Any help will be appreciated.