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

FAI-13600 | Add retries for 422 error on PR files API (GitHub) #1755

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dbruno21
Copy link
Contributor

@dbruno21 dbruno21 commented Oct 25, 2024

Description

Add retries for 422 error on PR files API (GitHub)

  • Added custom plugin / hook because retries plugin doNotRetry parameter is fixed after initializing Octokit instance (#1 #2) and to avoid having to do retry logic manually.

Type of change

  • Bug fix
  • New feature
  • Breaking change

Related issues

Fix #1

Migration notes

Describe migration notes if any

Extra info

Add any additional information

Copy link

sonarcloud bot commented Oct 25, 2024

@dbruno21 dbruno21 marked this pull request as ready for review October 25, 2024 21:19
throw new RequestError(
`GitHub request timed-out after ${timeoutMs} ms`,
500,
1000,
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this 1000 ?

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.

2 participants