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.

Client gRPC won't work anymore after updating to 3.23.1 (works in 3.23.0)

See original GitHub issue

What version of gRPC and what language are you using?

c#, Google.Protobuf 3.23.1

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

Edition Windows 11 Pro Version 22H2 Installed on ‎28/‎09/‎2022 OS build 22621.1702 Experience Windows Feature Experience Pack 1000.22641.1000.0

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

.Net 7.0

What did you do?

If possible, provide a recipe for reproducing the error. Try being specific and include code snippets if helpful.

This morning I updated my WPF project from: Google.Protobuf 3.23.0 to Google.Protobuf 3.23.1 This is the only change I made. I published my project using my usual settings:

Configuration Release
Platform Any CPU
PublishProtocol FileSystem
_TargetId Folder
TargetFramework net7.0-windows
RuntimeIdentifier win-x64
SelfContained false
PublishSingleFile true
PublishReadyToRun true

If I try to launch my WPF client it stops as soon as trying to connect to my gRPC server. I tried catching an error and logging it with Serilog, but I was not able to find it.

It does not happen if I run the project from Visual Studio in debug or if I launch the exe from the release folder after building (the difference here is that the libraries are not merged in one huge exe, as in publishing (I use PublishSingleFile = true). I rolled back to 3.23.0 and I can publish my WPF project successfully and connect as usual to my gRPC Server app.

What did you expect to see?

Being able to connect to my gRPC Server App from my gRPC Client App.

What did you see instead?

The published (single file) client app is unable to connect to the gRPC Server. Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).

See TROUBLESHOOTING.md for how to diagnose problems better.

Anything else we should know about your project / environment?

The gRPC Server App has been updated to 3.23.1 as well, and it works perfectly. I’m able as well to connect from my client gRPC app if I run it from Visual Studio, or if I launch the exe after building it in release. Any chance it might be related to the latest changes or should I look somewhere else? Regards Roberto

Issue Analytics

  • State:closed
  • Created 4 months ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
robertodalmontecommented, Jun 5, 2023

from Google.Protobuf 3.23.0 to 3.23.2

0reactions
robertodalmontecommented, Aug 9, 2023

Hi James, just to let you know that today I upgraded from Google.Protobuf 3.23.4 to 3.24.0 and my app fails to start (after publishing). So I restored 3.23.4 and everything works again. I guess I’ll skip this update Regards Roberto

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - gRPC client having lots of issues and not working
I clearn solution, rebuild it - nothing helps! The only thing which helps is addting the brand new project and copy pasting the...
Read more >
Troubleshoot gRPC on .NET
Call insecure gRPC services with .NET Core client. The .NET gRPC client can call insecure gRPC services by specifing http in the server...
Read more >
What's New - Oracle Linux Yum Server
Oracle Linux with Oracle enterprise-class support is the best Linux operating system (OS) for your enterprise computing needs.
Read more >
Basics tutorial | Go
This tutorial provides a basic Go programmer's introduction to working with gRPC. By walking through this example you'll learn how to:.
Read more >
Unable to connect to .NET 7 GRPC service on running ...
It says it's working. I get the "endpoints must be made through a gRPC client" message if I try to connect with a...
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