Skip to content

Conversation

mag123c
Copy link

@mag123c mag123c commented Aug 9, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

RabbitMQ health check tests fail when using RabbitMQ 4.1.0 or higher with the error: "negotiated frame_max = 4096 is lower than the minimum allowed value (8192)"

This blocks all CI/CD pipelines and affects any project using RabbitMQ 4.1+ with @nestjs/terminus.

Issue Number: #2672

What is the new behavior?

  • Updated amqplib from 0.10.5 to 0.10.6
  • RabbitMQ health checks now successfully connect to RabbitMQ 4.1+ instances
  • No code changes required for library users
  • Tests pass without manual frameMax configuration

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Root cause

RabbitMQ 4.1.0 (April 2025) increased the minimum pre-authentication frame_max from 4096 to 8192 bytes to accommodate larger JWT tokens.

Solution

amqplib 0.10.6 includes the fix that automatically negotiates compatible frame_max values with RabbitMQ 4.1+.

References

RabbitMQ 4.1.0 Release Notes, amqplib issue #791

@mag123c mag123c changed the title fix(deps): update amqplib to 0.10.6 for rmq 4.1+ compatibility\ fix(deps): update amqplib to 0.10.6 for rmq 4.1+ compatibility Aug 9, 2025
@mag123c mag123c force-pushed the fix/rmq-4.1-framemax-compatibility branch from 25c7ea3 to 9bec124 Compare August 9, 2025 02:26
@mag123c
Copy link
Author

mag123c commented Aug 9, 2025

Changed amqplib to 0.10.7 in accordance with the release notes recommendations of RabbitMQ 4.1.0

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

Successfully merging this pull request may close these issues.

1 participant