MuleSoft / Flex Gateway
Omni (Flex) Gateway: the contract collector retries without back-off, causing timeouts and intermittent 503/504
- Reported
- Nov 18, 2026
- Updated
- Nov 19, 2026
- Fixed
- Nov 19, 2026
- Reports
- 0
- Found in
- —
- Reference
- W-23460693
Summary
In Omni (Flex) Gateway versions earlier than 1.12.9 (and 1.13.x earlier than 1.13.4), when Anypoint Platform answers slowly or with errors, the contract collector retries its login and contract download calls on every polling cycle. It ignores the Retry-After header and does not wait between attempts. Each policy re-initialization adds more of these calls: API or policy edits, pod restarts, and replicas that run short of memory or CPU. The repeated calls add load inside the gateway and can slow its internal local storage. As a result, policies that rely on local storage, such as OpenID Connect OAuth 2.0 Token Enforcement, can fail with FLTR-300 timeouts, and clients can intermittently receive 503 or 504 responses. The gateway keeps running and the errors come and go, which makes them hard to link to a single API, policy or cluster.
The fix shipped in Omni Gateway 1.12.9 and 1.13.4. From those versions on, the contract collector honors the Retry-After header and waits between polls when downloading API configurations.
Workaround
Upgrade Omni (Flex) Gateway to 1.12.9 or later. The latest 1.12.x release is recommended, and it lets you stay on your current minor version. Alternatively, upgrade to 1.13.4 or later, or any 1.14.x release.
Also review the gateway pods' CPU and memory requests and limits, so the gateway has headroom for the number of APIs and policies it runs.
Note: after the upgrade, a ContractCollector: Login request failed, retrying on next tick: BadArgument warning may still appear at pod startup. It is followed by a successful retry and does not affect traffic.
Steps to reproduce
- Deploy Omni (Flex) Gateway 1.12.8 or earlier in Connected Mode, for example on Kubernetes, with several API instances and policies applied try to include OpenID Connect OAuth 2.0 Token Enforcement.
- Run the gateway with tight resources, for example memory limits close to actual usage and a low Envoy concurrency.
- Make the Anypoint Platform contracts/login responses slow or failing (higher latency, 503 or 504), and trigger policy re-initializations by editing policies or restarting replicas.
- Look at the gateway logs. You see ContractCollector 503/504 and login retry warnings repeating on every tick with no back-off, followed by FLTR-300 local storage timeouts and intermittent 503/504 responses to API clients.
Error details
Connectivity error: Get from local storage failed: TimeoutError (ErrorCode: FLTR-300) Connectivity error: Store to local storage failed: TimeoutError (ErrorCode: FLTR-300) ContractCollector: Unexpected response 504, error: upstream request timeout ContractCollector: Unexpected response 503, error: upstream connect error or disconnect/reset before headers. reset reason: remote refused stream reset ContractCollector ContractsRepoHandler on_get_lock_error_at_handler other error ContractCollector: Login request failed, retrying on next tick: BadArgument
Status timeline
Nov 30, 2026
created · Solution Deployed · 0 reports
Nov 30, 2026
content changed · Solution Deployed · 0 reports