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

Getting Error while fetching the Get Operation API #3019

Open
PrajwalTM opened this issue Jul 22, 2024 · 5 comments
Open

Getting Error while fetching the Get Operation API #3019

PrajwalTM opened this issue Jul 22, 2024 · 5 comments

Comments

@PrajwalTM
Copy link

Summary:
When attempting to fetch operations using the get operation API, the request takes an excessively long time to respond and often hangs, preventing successful retrieval of operation details in Swagger. This issue occurs when there are 40 or more operations in the system.

Description:
We have encountered a significant performance issue with the get operation API. The API call is intended to fetch the details of operations, but when the number of operations exceeds 40, the request becomes very slow and often hangs indefinitely. This behavior is observed in both our application and the Swagger UI, where the operation details fail to load.

Steps to Reproduce:

  • Create 40 or more operations in the system.
  • Open Swagger UI or use any API client (e.g., Postman) to send a GET request to the get operation API endpoint.
  • Observe the response time and check if the operation details are retrieved successfully.
  • Expected Behavior:
  • The get operation API should respond in a reasonable amount of time and return the operation details without hanging, regardless of the number of operations present.

Actual Behavior:

  • The get operation API takes an excessively long time to respond when there are 40 or more operations.
  • The API request frequently hangs, resulting in no operation details being retrieved.
  • Swagger UI fails to display the operation details due to the hanging issue.

Environment:

  • Application Version: 4.2.0
  • API Endpoint: get/api/v2/operations
  • Browser (if using Swagger UI): Chrome

Additional Information:

  • The issue does not occur when there are fewer than 40 operations.
  • This problem is impacting our ability to monitor and manage operations effectively.
  • No error messages are returned; the request simply hangs.
Copy link

Looks like your first issue -- we aim to respond to issues as quickly as possible. In the meantime, check out our documentation here: http://caldera.readthedocs.io/

@L015H4CK
Copy link
Contributor

L015H4CK commented Jul 22, 2024

As a side note: I encounter the same problem when getting all abilities using the API and version 5.0.0. So I think it is not operation-specific. I guess the API/Caldera simply does not support large amounts of data.

@elegantmoose
Copy link
Contributor

@PrajwalTM So we made some changes in the frontend (mitre/magma#53) to make the operation polling more performant. If repull Master, (hopefully) should have no issue.

@elegantmoose
Copy link
Contributor

@L015H4CK That makes sense, as I dont recall us putting in paging yet.

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants