Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proxy timeout error #78

Open
doberkofler opened this issue Nov 12, 2024 · 0 comments
Open

proxy timeout error #78

doberkofler opened this issue Nov 12, 2024 · 0 comments

Comments

@doberkofler
Copy link

doberkofler commented Nov 12, 2024

I'm using the koa-proxies module as part of my web-test-runner infrastructure for unit tests to forward calls to my app backend.
This does generally work as expected but when the backend does not respond within 2 seconds the proxy responds with:

2024-11-12T20:23:49.978Z - POST /BACKEND/TST_UNITTEST_UiButton.click proxy to -> http://127.0.0.1:7777/ords/lj_unittest/TST_UNITTEST_UiButton.click
Error while handling server request.
Error: Http response closed while proxying /BACKEND/TST_UNITTEST_UiButton.click
    at ServerResponse.<anonymous> (/*/node_modules/koa-proxies/index.js:99:16)

It seems to some kind of timeout error in the proxy itself but I cannot seem how to increase it?

My proxy configuration looks like this:

proxy('/BACKEND', {
	target: getBaseURL(),
	changeOrigin: true,
	rewrite: (p) => p.replace(/^\/BACKEND/, ''),
	logs: true,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant