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

fix(application-generic, api, worker): Throw client timeout exception for Bridge timeout errors #6737

Merged
merged 4 commits into from
Oct 22, 2024

Conversation

rifont
Copy link
Contributor

@rifont rifont commented Oct 21, 2024

What changed? Why was the change needed?

  • Throw client timeout exception for Bridge timeout errors
    • Previously, a 504 GatewayTimeout exception was thrown, which was inaccurate as the server was not at fault. This is replaced by a more accurate 408 Request Timeout, indicating the client was unable to fulfil the request within the time the server was prepared to wait.
  • Reduce bridge maximum timeout to 5 seconds
  • Add comments and refine retryable status codes

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

504, // Gateway Timeout
521, // CloudFlare TCP Error
522, // CloudFlare Web Server Connection Error
524, // CloudFlate Timeout Error
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed 413 and 502 as they are typically not retryable status codes (ref)

@rifont rifont requested a review from SokratisVidros October 21, 2024 15:30
Copy link

netlify bot commented Oct 21, 2024

Deploy Preview for novu-stg-vite-dashboard-poc ready!

Name Link
🔨 Latest commit ae3788b
🔍 Latest deploy log https://app.netlify.com/sites/novu-stg-vite-dashboard-poc/deploys/67175b264bd5b600092e0aee
😎 Deploy Preview https://deploy-preview-6737--novu-stg-vite-dashboard-poc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

…xecute-bridge-request.usecase.ts

Co-authored-by: George Djabarov <39195835+djabarovgeorge@users.noreply.github.com>
@rifont rifont merged commit 18cdedd into next Oct 22, 2024
10 checks passed
@rifont rifont deleted the fix-bridge-timeout-exception-error branch October 22, 2024 07:59
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.

3 participants