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

The final response code of my api service when using traefik error middleware is of main service ? - error service ? #10742

Closed
2 tasks done
jainasanthosh2023 opened this issue May 20, 2024 · 1 comment

Comments

@jainasanthosh2023
Copy link

Welcome!

  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?

We have a couple of microservice applications with common error service deployed on k8s, i tried to redirect using error middleware option to redirect to error service but I always see final response code as of main service followed by response content from error service.

What did you see instead?

I am expecting since error middleware successfully redirected to error service , the final response code should be 200.

What version of Traefik are you using?

v2.10.6

What is your environment & configuration?

    errors:
      query: /
      service:
        name: nginx
        namespace: traefik-demo-failover
        nativeLB: true
        passHostHeader: false
        port: 80
        scheme: http
      status:
      - 500-599

Add more configuration information here.

If applicable, please paste the log output in DEBUG level

No response

@kevinpollet
Copy link
Member

Duplicate of #2039

@kevinpollet kevinpollet marked this as a duplicate of #2039 May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants