Skip to content

What happens when Kong forwards a request to backend but backend does not give any response? #7242

Answered by kikito
Sereneee asked this question in Help
Discussion options

You must be logged in to vote

Hello Sereneee,

It depends on how you define "not giving any response":

  • If the backend return non-http response (for example, a binary file without an HTTP header) then Kong will return a 502 status response with the message An invalid response was received from the upstream server
  • If the backend does not even accept a connection, then Kong will return immediately with a 503 response The upstream server is currently unavailable
  • If the backend accepts the connection but does not produce a response, then kong will eventually kill the connection and return a 504-The upstream server is timing out response

Is there a default message that is returned back to frontend?

The error descriptions…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@kikito
Comment options

@Sereneee
Comment options

@javierguerragiraldez
Comment options

@Sereneee
Comment options

@kikito
Comment options

Answer selected by kikito
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
3 participants
Converted from issue

This discussion was converted from issue #7161 on May 26, 2021 21:23.