Coder Social home page Coder Social logo

node-red-contrib-amqp's People

Contributors

stormpass avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

node-red-contrib-amqp's Issues

Node-RED disconnected from RabbitMQ and not reconnecting

Hello,

I have a problem with how the connection error is (not) implemented:
https://github.com/Stormpass/node-red-contrib-amqp/blob/main/src/Amqp.ts#L74
When there is a connection error, Node-RED disconnect from RabbitMQ and does not attempt to reconnect.
I have to redeploy the node to recreate a connection.

Would it be possible to force a reconnection when there is a connecion error ?
Or maybe there is another way (that I don't know about) to handle it in Node-RED ?

Thank you.

Channel closed - after restart flows

After creating a flow with manual message acknowledgment, Node-RED automatically restarts with the following message. I also copied the example, and the same error occurs. The Node-RED version is 3.1.8.

[error] IllegalOperationError: Channel closed
at Channel. (/usr/src/node-red/node_modules/amqplib/lib/channel.js:159:11)
at C.closeBecause (/usr/src/node-red/node_modules/amqplib/lib/channel.js:211:8)
at /usr/src/node-red/node_modules/amqplib/lib/channel_model.js:72:19
at node:internal/util:441:7
at new Promise ()
at node:internal/util:427:12
at Channel.close (/usr/src/node-red/node_modules/amqplib/lib/channel_model.js:74:7)
at reconnect (/usr/src/node-red/node_modules/@stormpass/node-red-contrib-amqp/build/src/nodes/amqp-out.js:74:29)
at Channel. (/usr/src/node-red/node_modules/@stormpass/node-red-contrib-amqp/build/src/nodes/amqp-out.js:110:31)

Can't connect to an existing queue with x-message-ttl

I am trying to consume messages from an existing queue. The queue has its x-message-ttl set. When I add the amqp-in node to consume that queue, I get this log:

"Could not consume message: Error: Operation failed: QueueDeclare; 406 (PRECONDITION-FAILED) with message "PRECONDITION_FAILED - inequivalent arg 'x-message-ttl' for queue 'queueName' in vhost 'vhost': received none but current is the value '9000' of type 'long'""

How should I fix this?

ampq-in tries to create the queue before connecting to it

ampq-in tries to create the queue before connecting to it. If the user does not have the right to create the queue the call fails with a 403. The expected behaviour should be to try to connect to the queue before trying to create it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.