You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expecting error middleware to give response code of the error page invocation, instead is always giving the http code error that i am handling in middleware.
In this example my curl output always giving 502 followed error url response content.
I am expecting client should not be served with 502 response as i am handling to redirect to different service to fulfill the same request.
$ curl -i http://traefik-demo-east.corp
**HTTP/1.1 502 Bad Gateway**
Accept-Ranges: bytes
Content-Length: 639
Content-Type: text/html
Date: Wed, 15 May 2024 09:27:11 GMT
Etag: "66438361-27f"
Last-Modified: Tue, 14 May 2024 15:29:37 GMT
Server: nginx/1.25.5
<!DOCTYPE html><html><head><title>Welcome to failover to nginx!</title><style>
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style></head><body><h1>Welcome to failover to nginx</h1><p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p><p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p><p><em>Thank you for using nginx.</em></p></body></html>
What version of Traefik are you using?
$ helm list
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
traefik traefik 2 2024-02-02 20:42:25.190390562 +0530 IST deployed traefik-26.0.0 v2.10.6
Welcome!
What did you do?
expecting error middleware to give response code of the error page invocation, instead is always giving the http code error that i am handling in middleware.
What did you see instead?
In this example my curl output always giving 502 followed error url response content.
I am expecting client should not be served with 502 response as i am handling to redirect to different service to fulfill the same request.
What version of Traefik are you using?
$ helm list
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
traefik traefik 2 2024-02-02 20:42:25.190390562 +0530 IST deployed traefik-26.0.0 v2.10.6
What is your environment & configuration?
Add more configuration information here.
If applicable, please paste the log output in DEBUG level
No response
The text was updated successfully, but these errors were encountered: