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.

amqp pub/sub throws exception on every message

See original GitHub issue

Hi,

I am evaluating solutions for using an amqp broker with Nest.js and your project looks very promising.

I tried the pub/sub feature by adapting your kitchen-sink example and it works well, but I noticed that the timeout Exception is thrown on every message:

UnhandledPromiseRejectionWarning: Error: Failed to receive response within timeout of 10000ms
    at MapSubscriber.rxjs_1.interval.pipe.operators_1.map.x [as project] (/Users/mkrone/Development/nestjs-plus/examples/kitchen-sink/node_modules/@nestjs-plus/rabbitmq/src/amqp/AmqpConnection.ts:79:15)

Maybe the use of rxjs timeout or takeUntil operators can fix this in packages/rabbitmq/src/amqp/AmqpConnection.ts?

Let me know if I can help out with this.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
WonderPandacommented, Feb 22, 2019

@michaelkrone You were correct, there’s a bug in the way subscribers are attached when using exchange types other than topic. I’ve opened an issue to track it https://github.com/WonderPanda/nestjs-plus/issues/5

It should be a small tweak so I’ll get the fix up this weekend

0reactions
WonderPandacommented, Feb 23, 2019

@michaelkrone #5 is now closed and I’ve updated the kitchen sink example app. Should be fine to use the different exchanges types now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handle message failures | Cloud Pub/Sub
The details panel shows a list of possible action items. If any of the items show an error icon error, click the action...
Read more >
Azure ServiceBus pub sub send message. Connection reset ...
Azure ServiceBus Pub Sub experiences some issues every now and then where the exception is "connection reset by peer".
Read more >
RabbitMQ tutorial - Reliable Publishing with Publisher Confirms
Confirms should be enabled just once, not for every message published. ... could not take care of it for some reason), the method...
Read more >
Python pubsub / message queue over HTTP? - Stack Overflow
I have a python script that will run on a local machine that needs to access a message queue (RabbitMQ) or receive subscribed...
Read more >
RabbitMQ vs. Pub/Sub: Choosing a Message Queue for Your ...
RabbitMQ and Google Pub/Sub are both powerful and reliable message queue ... public static void main(String... args) throws Exception ...
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