airavata-courses / dexlab

Scientifc plots using NASA MERRA and NEXRAD datasets
Apache License 2.0
0 stars 3 forks source link

Upstream service error not handled properly in the gateway #30

Open sbmthakur opened 2 years ago

sbmthakur commented 2 years ago
/usr/src/app/models/radar.js:29
            console.log(response.statusCode,"-=-=-=-=-=-=-=" ,new Date().getTime())
                                 ^

TypeError: Cannot read property 'statusCode' of undefined
    at Request._callback (/usr/src/app/models/radar.js:29:34)
    at self.callback (/usr/src/app/node_modules/request/request.js:185:22)
    at Request.emit (node:events:394:28)
    at Request.onRequestError (/usr/src/app/node_modules/request/request.js:877:8)
    at ClientRequest.emit (node:events:394:28)
    at Socket.socketErrorListener (node:_http_client:447:9)
    at Socket.emit (node:events:394:28)
    at emitErrorNT (node:internal/streams/destroy:193:8)
    at emitErrorCloseNT (node:internal/streams/destroy:158:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
Example app listening at http://0.0.0.0:3001