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

Echo rewrite for the sfu-ws example gives the hijack error #2523

Open
NikhilSharmaWe opened this issue Sep 22, 2023 · 1 comment
Open

Echo rewrite for the sfu-ws example gives the hijack error #2523

NikhilSharmaWe opened this issue Sep 22, 2023 · 1 comment

Comments

@NikhilSharmaWe
Copy link

Hey

  • I am working on a video conference application. I inspired my video conference handling with the sfu-ws example.

  • But I am using echo framework instead in my application, which causing some problems.

When I get to the meeting page, everything works fine but when I leave the meeting page, the server logs this hijack error for the echo response writer:

echo: http: response.WriteHeader on hijacked connection from github.com/labstack/echo/v4.(*Response).WriteHeader (response.go:63)
echo: http: response.Write on hijacked connection from github.com/labstack/echo/v4.(*Response).Write (response.go:75)
{"time":"2023-09-22T01:26:57.800164+05:30","level":"ERROR","prefix":"echo","file":"echo.go","line":"463","message":"http: connection has been hijacked"}

Help needed in finding out what am I missing here, since relatively newer to working with echo.

@NikhilSharmaWe NikhilSharmaWe changed the title Echo rewrite for the sfu-ws example Echo rewrite for the sfu-ws example gives the hijack error Sep 22, 2023
@gianarb
Copy link

gianarb commented Jan 9, 2024

I am getting the same error. I have a different setup because I use openapi as well.

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