Skip to content

RabbitMQ health check fails with RabbitMQ 4.1+ due to frameMax incompatibility #2672

@mag123c

Description

@mag123c

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

  • RabbitMQ health check tests fail when using RabbitMQ 4.1.0 or higher
  • Error message: "negotiated frame_max = 4096 is lower than the minimum allowed value (8192)"
  • All CI/CD pipelines fail on RMQ-related tests, blocking PRs

Minimum reproduction code

  1. git clone https://github.com/nestjs/terminus.git
  2. docker compose up -d (Use the current docker-compose.yml which specifies rabbitmq:4-management-alpine)
  3. pnpm i && pnpm build
  4. pnpm test:e2e

Steps to reproduce

  1. Start RabbitMQ 4.1+ container (as configured in docker-compose.yml)
  2. Run e2e tests: npx jest --config=e2e/jest-e2e.json e2e/health-checks/microservice.health.e2e-spec.ts
  3. RMQ health check test fails with frameMax negotiation error
  4. Check docker logs: docker logs rabbitmq | grep frame_max

Expected behavior

  • RabbitMQ health check should successfully connect to RabbitMQ 4.1+ instances
  • Tests should pass without manual frameMax configuration
  • The library should handle RabbitMQ version compatibility automatically

Package version

11.0.0

NestJS version

11.*

Node.js version

18.x, 20.x, 22.x

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions