-
Notifications
You must be signed in to change notification settings - Fork 434
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
grpc-web: Using server streaming with authboss the call remains in pending state (and doesn't work) #1018
Comments
Here is the code for that middleware: https://github.com/volatiletech/authboss/blob/master/client_state.go#L123. |
Sounds like some sort of timeout is being hit. I don't know why the middleware is causing the server to wait, I can't see it doing anything suspicious with the request body at a first glance. I'd probably just try and debug it more! |
authboss's author, @aarondl, answered this here:
Are you using |
Most of the logic is in this file: https://github.com/improbable-eng/grpc-web/blob/master/go/grpcweb/wrapper.go. We're doing some wrapping of the body, but I don't think we're using Hijack, unless you're using websockets and it's done by our websocket library. |
Nope. |
Versions of relevant software used
github.com/improbable-eng/grpc-web v0.14.0
What happened
I have been using
grpc-web
for a long time (it's such a pleasure, THANKS!).I'm using it with authboss too.
Today I had to test the gRPC server streaming and after HOURS of trying I found a strange issue described below:
I'm trying to use
protobuf-ts
but I don't get messages from server until connection is closed.I'm using Svelte 3 like this:
The call in in pending state for about 2.2 min. After that I get all messages logged in console.
If I change this line:
to:
(removing
authb.LoadClientStateMiddleware
) it works!Why?
Can you suggest me something?
The text was updated successfully, but these errors were encountered: