question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

non-asycn gRPC call hangs browser

See original GitHub issue

What version of gRPC and what language are you using?

Client - netstandard2.1, Grpc.Net.Client.Web Version 2.27.0-pre1 Server - netcoreapp3.1, Grpc.AspNetCore Version 2.27.0, Grpc.AspNetCore.Web Version 2.27.0-pre1 Shared - netstandard2.1, Google.Protobuf Version 3.11.3, Grpc.Net.Client Version 2.27.0, Grpc.Tools Version 2.27.0

What operating system (Linux, Windows,…) and version?

Windows 10

What runtime / compiler are you using (e.g. .NET Core SDK version dotnet --info)

Core 3.1.100 Blazor 3.2

What did you do?

Calling gRPC non-async causes the browser (both Edge and Chrome) to hang. Edge will sometimes pop a ‘long running script’ error. Browsers have to be closed via task manager. Sample available here - https://github.com/ThatRickGuy/WASM-Blazor-gRPC-Sample in the FetchData.razor file, comment/uncomment the “This works” and “This doesn’t” blocks. In the non-async call, the server receives and processes the request, but the client doesn’t get the response.

What did you expect to see?

A successful non-async call to the gRPC service

What did you see instead?

Browser hangs

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JamesNKcommented, Feb 10, 2020
0reactions
ThatRickGuycommented, Feb 12, 2020

Excellent! That will hopefully help others from making the same mistake I made! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

gRPC c++ v1.38 async-server crashes
Basically, when the gRPC server receive client request, it needs asynchronously get the info from somewhere else. When the required info comes ...
Read more >
C++ gRPC call hangs
Hi All,. I am running into an issue with Bigtable when I see some calls hanging occasionally in my C++ gRPC application. The...
Read more >
A new experiment: Call .NET gRPC services from the ...
Call ASP.NET Core gRPC apps from the browser – Browser APIs can't call gRPC HTTP/2. gRPC-Web offers a compatible alternative. JavaScript SPAs ....
Read more >
gRPC and Deadlines
TL;DR: Always set a deadline. This post explains why we recommend being deliberate about setting deadlines, with useful code snippets to ...
Read more >
Use gRPC in browser apps
gRPC JSON transcoding allows browser apps to call gRPC services as if they were RESTful APIs with JSON. The browser app doesn't need...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found