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

Better management on API call retry on /graphql errors #714

Open
aHenryJard opened this issue Aug 5, 2024 · 0 comments
Open

Better management on API call retry on /graphql errors #714

aHenryJard opened this issue Aug 5, 2024 · 0 comments
Assignees
Labels
technical improvement Technical refactor or improvement is needed

Comments

@aHenryJard
Copy link
Member

Description

When OpenCTI is in bad shape and connectors or worker retry API call there is no sleep time between calls and this can lead to many /graphql calls and ends with:

Max retries exceeded with url: /graphql (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f811e756cf0>: Failed to establish a new connection: [Errno 111] Connection refused'))

Some delay should be add after a failing call to /graphql.

Environment

  1. OS (where OpenCTI server runs): { e.g. Mac OS 10, Windows 10, Ubuntu 16.4, etc. }
  2. OpenCTI version: { e.g. OpenCTI 1.0.2 }
  3. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. { e.g. Run ... }
  2. { e.g. Click ... }
  3. { e.g. Error ... }

Expected Output

{ Please describe what you expected to happen. }

Actual Output

{ Please describe what actually happened. }

Additional information

{ Any additional information, including logs or screenshots if you have any. }

@aHenryJard aHenryJard added the technical improvement Technical refactor or improvement is needed label Aug 5, 2024
@aHenryJard aHenryJard self-assigned this Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
technical improvement Technical refactor or improvement is needed
Projects
None yet
Development

No branches or pull requests

1 participant