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 Running Error Reporting

See original GitHub issue

I put the implementation of the service interface in netstandard separately, and then the server directly references it and runs it. Client will report errors when requesting,Error Info: Unhandled Exception: System.AggregateException: One or more errors occurred. (Status(StatusCode=Unimplemented, Detail="")) ---> Grpc.Core.RpcException: Status(StatusCode=Unimplemented, Detail="") at MagicOnion.UnaryResult1.Deserialize() — End of inner exception stack trace — at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at Client.Program.Main(String[] args) in F:\MyDemoProject\MagicOnionProject\Client\Program.cs:line 19

The structure of my project is as follows: QQ截图20190412163015 2

Issue Analytics

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

github_iconTop GitHub Comments

landonzengcommented, Apr 19, 2019

@vivilily Thanks!

vivililycommented, Apr 19, 2019

@landonzeng Grpc.Core.RpcException: 'Status (StatusCode = Unimplemented, Detail = "")' error is It occurs because the corresponding method is not registered in MethodHandlers property that MagicOnionServiceDefinitiong of return value of MagicOnionEngine.BuildServerServiceDefinition has.

Assembliy obtained by AppDomain.CurrentDomain.GetAssemblies is registered by default. The Test class is not used in the Servers project, it is stripped and it is excluded from AppDomain.CurrentDomain.GetAssemblies.

In this case, you can solve it by registering Assembly manually.

MagicOnionServiceDefinition service = MagicOnionEngine.BuildServerServiceDefinition(
    new[] {typeof(Test).Assembly },  // Manually add
    new MagicOnionOptions(true)
        MagicOnionLogger = new MagicOnionLogToGrpcLogger()

Thank you for confirmation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Reporting client libraries
This page shows how to get started with the Cloud Client Libraries for the Error Reporting API. Read more about the client libraries...
Read more >
Overview | Error Reporting
A simple endpoint to report errors from your running service. Read access to error groups and their associated errors. Getting started. Enable the...
Read more >
Enable Windows Error Reporting (WER)
Go to Computer Configuration > Administrative Template > Windows Components > Windows Error Reporting. Double-click the Disable Windows Error ...
Read more >
Error Reporting Client — google-cloud 0.20.0 documentation
Error Reporting client. Currently Error Reporting is done by creating a Logging client. Parameters: project (string) – the project which the client acts...
Read more >
Node.js client for Stackdriver Error Reporting
Node.js client for Stackdriver Error Reporting: Count, analyze and aggregate the crashes in your running cloud services.
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 Post

No results found

github_iconTop Related Hashnode Post

No results found