E3EC [Question] EG: Socket Hang Up · Issue #1067 · ExpressGateway/express-gateway · GitHub
[go: up one dir, main page]

Skip to content

[Question] EG: Socket Hang Up #1067

@Zakisu

Description

@Zakisu

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0