You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @brandomr the hanging issue is due to not using the proper grpc adapter for AIO:
asyncdefget(self) ->web.Response:
channel=grpc.aio.insecure_channel('localhost:50051') # Note grpc.aiohello_world_stub=HelloWorldServiceStub(channel)
print("Reaching out to gRPC now...")
name="SOME NAME"request=HelloRequest()
request.name=nameresponse=awaithello_world_stub.Hello(request) # Dont forget to awaitreturnweb.Response(text=response.message)
Hope that works for you now, feel free to reopen if not.
This is more of a question really--is it possible to call the gRPC command from within a web request?
For example, I'd like the webview to look like:
But this endpoint then just hangs. Any suggestions?
The text was updated successfully, but these errors were encountered: