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

[Question] EG: Socket Hang Up #1067

Open
Zakisu opened this issue Aug 10, 2023 · 0 comments
Open

[Question] EG: Socket Hang Up #1067

Zakisu opened this issue Aug 10, 2023 · 0 comments

Comments

@Zakisu
Copy link

Zakisu commented Aug 10, 2023

I have an issue with Socket Hang Up when using Express Gateway. When express gateway making requests to a backend service, I often encounter a 502 error even though the backend service is in a normal state. Do I need to configure settings like proxyTimeout / timeout?

message:
[EG:policy] warn: socket hang up

gateway.config.yml

-
        proxy:
          - action:
              serviceEndpoint: momotaro-2
              changeOrigin: true
              timeout: 66000

I assume this is a timeout issue when making requests to the service. Which one is correct to use for configuring the timeout when requests are sent from Express Gateway to the backend service, is it timeout or proxyTimeout?

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