Tuesday, April 28, 2026
1 change · 18.0
Code cleanup and technical improvements
This update strengthens Odoo's communication with external services by introducing a more robust and reliable HTTP service. It addresses previous issues with error handling and data consistency, ensuring smoother operation under demanding conditions and improving system stability.
Original PR description
This PR replaces the legacy HTTP utility with a robust, production-ready HttpService class. The goal is to improve system reliability under high load and unstable network conditions. Key Features:…
This PR replaces the legacy HTTP utility with a robust, production-ready HttpService class. The goal is to improve system reliability under high load and unstable network conditions. Key Features: Resilience: Implements Exponential Backoff + Jitter for retries. Respects Retry-After headers. Strict Idempotency: Prevents dangerous retries on non-idempotent methods (POST/PATCH) to avoid data duplication. Observability: Integrated Correlation IDs and detailed error objects (latency, attempt count) for better debugging. Safety: Recursive parameter serialization with circular reference protection. Resource Management: Abort-aware delays to prevent memory leaks during component unmounts. Extensibility: Interceptor pipeline for request/response manipulation (e.g., Auth injection). This refactor addresses previous limitations regarding error swallowing and lack of type safety in response parsing. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr