Curl and Postman giving different response?
As I found from your code and curl tutorial that When you GET a endpoint with curl your command should be like this:
curl "http://localhost:8000/api/request?connId=19&timeout=8000"
Without double inverted comma in url, console.log(req.query)
will result in { connId: '19' }
which is causing the problem.