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.

7.0 not returning Rpc request the 2nd time

See original GitHub issue

Hi

I’m trying out version 7 (currently on RC 2) in a small project, as I wish to use the new non-generic version of the PubSub.Subscribe. All that seems to work correctly.

I am however experiencing an issue on an Rpc.Request, where the first execution of the request works as expected, however, any subsequent requests will not come through. The specific code being run is this: var data = await bus.Rpc.RequestAsync<UserDataRequest, UserDataResponse>(new UserDataRequest() { UserId = authId });

I have verified that there are no exceptions being thrown by the responder to this request. It runs and returns both times as intended.

Debug log:

(First time)
[11:33:49 Debug] Declared queue easynetq.response.92896953-8791-400a-97df-6842c3914491: durable=False, exclusive=True, autoDelete=True, arguments=
[11:33:49 Debug] Bound queue easynetq.response.92896953-8791-400a-97df-6842c3914491 to exchange easy_net_q_rpc with routingKey=easynetq.response.92896953-8791-400a-97df-6842c3914491 and arguments=
[11:33:49 Info] Declared consumer with consumerTag easynetq.response.92896953-8791-400a-97df-6842c3914491 on queue  and configuration EasyNetQ.Consumer.ConsumerConfiguration
[11:33:49 Debug] Published to exchange easy_net_q_rpc with routingKey=Messages.Read.Users.UserDataRequest, Messages and correlationId=972dcb8f-05f9-4a3b-ac2b-9cee4350e2e4
[11:33:50 Debug] Message delivered to consumer amq.ctag-4IF8xm2fHdTzBdYb0JjrBg with deliveryTag 1
[11:33:50 Debug] Received message with receivedInfo=[ConsumerTag=amq.ctag-4IF8xm2fHdTzBdYb0JjrBg, DeliveryTag=1, Redelivered=False, Exchange=easy_net_q_rpc, RoutingKey=easynetq.response.92896953-8791-400a-97df-6842c3914491, Queue=easynetq.response.92896953-8791-400a-97df-6842c3914491]

(2nd time)
[11:34:04 Debug] Published to exchange easy_net_q_rpc with routingKey=Messages.Read.Users.UserDataRequest, Messages and correlationId=e1e43365-0c5d-46a4-89af-8183d8f6d6cd

(3rd time)
[11:35:21 Debug] Published to exchange easy_net_q_rpc with routingKey=Messages.Read.Users.UserDataRequest, Messages and correlationId=554ed798-e805-4e0f-a930-a6ec0d88b945

Eventually, it reaches the timeout.

If I revert to the latest stable version 6, everything (except obvs. the non-generic subscribe) works as intended.

The Service receiving and handling the message is running EasyNetQ v5.

Any suggestions?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
joamla96commented, Jun 29, 2022

Everything seems to work wonderfully. Thank you again 😃

1reaction
Plinercommented, Jun 28, 2022

I’ve found the issue. The fix is in progress.

Read more comments on GitHub >

github_iconTop Results From Across the Web

golang rpc not returning when struct has a nested struct
if I attempt to perform the rpc the requests starts and the server executes the procedure. However the program then hangs and the...
Read more >
Chapter 7 Multithreaded RPC Programming
For example, say two requests come in, and the first takes 30 seconds to process, and the second takes only 1 second to...
Read more >
Preventing Client-side Hangs - Win32 apps
There are two ways your client can hang: network connectivity can cause server requests to become lost, or the server itself can crash....
Read more >
RabbitMQ tutorial - Remote procedure call (RPC)
Try running a second rpc_server.py in a new console. On the client side, the RPC requires sending and receiving only one message. No...
Read more >
RHEL mount hangs: nfs: server [...] not responding, still trying
Each message indicates that one NFS/RPC request (for example, one NFS WRITE) has been sent retrans times and timed out each time.
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