Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: rabbitmq channel connection is not restored #52

Open
ruscon opened this issue Feb 12, 2024 · 0 comments
Open

bug: rabbitmq channel connection is not restored #52

ruscon opened this issue Feb 12, 2024 · 0 comments

Comments

@ruscon
Copy link

ruscon commented Feb 12, 2024

IllegalOperationError: Channel closed
    at Channel.<anonymous> (/app/dist/node_modules/.pnpm/[email protected]/node_modules/amqplib/lib/channel.js:159:11)
    at C._rpc (/app/dist/node_modules/.pnpm/[email protected]/node_modules/amqplib/lib/channel.js:141:8)
    at /app/dist/node_modules/.pnpm/[email protected]/node_modules/amqplib/lib/channel_model.js:57:19
    at node:internal/util:442:7
    at new Promise (<anonymous>)
    at node:internal/util:428:12
    at Channel.rpc (/app/dist/node_modules/.pnpm/[email protected]/node_modules/amqplib/lib/channel_model.js:58:7)
    at Channel.assertExchange (/app/dist/node_modules/.pnpm/[email protected]/node_modules/amqplib/lib/channel_model.js:118:17)
    at AMQPPublisher.publish (/app/dist/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/graphql-amqp-subscriptions/dist/amqp/publisher.js:24:23)

I checked locally, it is easy to reproduce:

  1. Create an active graphql subscription
  2. Restart the rabbitmq server
  3. Submit an event you've signed up for - you must get the error.

I see there was some discussion on this topic a few years ago #16

@ruscon ruscon changed the title bug: rabbitmq connection is not restored bug: rabbitmq channel connection is not restored Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant