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

Status code is not passed to Webhook service correctly #70

Open
A3a3e1 opened this issue Jan 13, 2022 · 1 comment
Open

Status code is not passed to Webhook service correctly #70

A3a3e1 opened this issue Jan 13, 2022 · 1 comment
Assignees

Comments

@A3a3e1
Copy link
Contributor

A3a3e1 commented Jan 13, 2022

The issue reported by Mambu here:
https://elasticio.slack.com/archives/C01AMUCPX3M/p1642068401008400

Sailor passes a status code as a standalone property of HttpReply class while Eio Webhook service expects for a status code as a special header x-eio-status-code

@jhorbulyk
Copy link

Workaround

Specify header
.header("x-eio-status-code", String.valueOf(HttpReply.Status.BAD_REQUEST.getStatusCode()))
or
.header("x-eio-status-code", "400")
instead of
.status(HttpReply.Status.BAD_REQUEST)

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

2 participants