API call timeout
I always experienced this:
Error: API call timed out
at Function.Error.create (/root/proxy/node_modules/simple-errors/index.js:25:11)
at Function.Error.http (/root/proxy/node_modules/simple-errors/index.js:68:21)
at unhandledApiError (/root/proxy/node_modules/express-request-proxy/lib/proxy.js:254:25)
at Request.
I found that it caches the incomplete result even it is timeout. How to avoid that?
Did you change the timeout option in the middleware ?
It defaults to 5000 ms, it might be short in some cases.
having a similar issue for streaming a .mp4 video with timeout set to 10000
Error: API call timed out
at Function.Error.create (.../node_modules/simple-errors/index.js:25:11)
at Function.Error.http .../node_modules/simple-errors/index.js:68:21)
at unhandledApiError (.../node_modules/express-request-proxy/lib/proxy.js:254:25)
at Request.
I have the same problem when try to proxy request with body. The same request without body works well.
It is not a clue but may be it will help somebody. Solution for me was to change content-type from 'application/json' to 'text/plain'. Direct request with content type 'application/json' works well.
This is also an issue for me. I'm using .all, and curiously the issue does not occur on GET requests but does occur on PUT and POST requests.
Hi all - for me, the issue was something with bodyParser. Moving my app.use for bodyParser and jsonParser until after the app.alls for the proxy solved the issue.
It is not a clue but may be it will help somebody. Solution for me was to change content-type from 'application/json' to 'text/plain'. Direct request with content type 'application/json' works well.
This worked for me