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.

Error making grpc request against mock

See original GitHub issue

Hey Laurent!

I’m finally getting back to this after a crazy few weeks where I had some other priorities pop up (new hires, reports, etc.).

I have a proto file for an authentication service and trying to import Postman examples for it. They both import successfully, but when trying to hit the mock from BloomRPC, microcks throws an exception. I tried this with a couple different JSON_BODY dispatch rules and then finally without a dispatcher. All of them seem to throw the same exception. The short error is this:

22:55:27.474 ERROR 1 --- [executor-4] i.g.m.web.GrpcServerCallHandler : Unexpected throwable during GRPC input request processing

Attaching the stack trace, proto file and postman example files.

AuthV2.postman_collection.json.txt authv2.proto.txt stack.txt

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
molteninjabobcommented, Jul 28, 2021

Doh, I should have caught that. That’s what I get for just copy/pasting without checking. This is now working! Thank you!

1reaction
lbroudouxcommented, Jul 19, 2021

Will try to reproduced in coming days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mocking gRPC status code ('RpcError' object has no attribute ...
First thing first, when I run my flask app and make a request to a URL with a specific body which should raise...
Read more >
Mocking Service for gRPC
Mocking enables users to write light-weight unit tests to check functionalities on client-side without invoking RPC calls to a server.
Read more >
failed with flutter test:call from the client against the fake server ...
My recommendation would be to mock the generated gRPC client instead, since you can be reasonably sure that the generated code uses gRPC-dart ......
Read more >
Error Handling in gRPC - Baeldung
In this tutorial, we'll focus on gRPC error handling using Java. ... If the client makes an invalid request, it will get back...
Read more >
Chapter 6: Mocking and simulating gRPC - Traffic Parrot
Let us focus on a typical communication pattern where two systems communicate with unary gRPC request and responses: Client sends request message to...
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