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

HTTP: support following 308 redirects for server sent events #3852

Open
gWOLF3 opened this issue Jan 13, 2020 · 2 comments
Open

HTTP: support following 308 redirects for server sent events #3852

gWOLF3 opened this issue Jan 13, 2020 · 2 comments

Comments

@gWOLF3
Copy link

gWOLF3 commented Jan 13, 2020

What happens?

Gatling throws error and closes connection on 308 response from server, instead of simply following the redirect as expected.

20:47:55.451 [ERROR] i.g.h.a.s.SseListener - unexpected state closed with error message: i.g.h.a.s.SseException: Server returned http response with code 308

This is a full blocker for testing server sent events connections.

SSE should behave the same way to HTTP requests, in that, the default behavior should be to follow redirects, not throw.

@slandelle slandelle changed the title gatling does not support following 308 redirects for server sent events HTTP: support following 308 redirects for server sent events Jan 13, 2020
@slandelle
Copy link
Member

Indeed SSE support currently doesn't support redirects.
A contribution would be very welcome!

@slandelle
Copy link
Member

In the meantime, you can disable followRedirect on this specific request and grab the Location header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants