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

500 error when getting events #2691

Closed
LuisCordobaDataSite opened this issue Mar 1, 2024 · 2 comments · Fixed by #2693
Closed

500 error when getting events #2691

LuisCordobaDataSite opened this issue Mar 1, 2024 · 2 comments · Fixed by #2693
Assignees

Comments

@LuisCordobaDataSite
Copy link

Describe the bug
I am running the command
$atlas events projects list --output json --projectId <projectId> --maxDate 2024-03-01T15:21:10+00:00Z --minDate 2024-03-01T15:01:10+00:00Z --limit 500 --page 435
And getting the following error:
ERR Error: https://cloud.mongodb.com/api/atlas/v2/groups//events GET: HTTP 500 Internal Server Error ( Error code: "TIMEOUT _WHILE_PAGING") Detail: Unable to calculate the total number of results. Retry with includeCount=false. Reason: Internal Server Error. Params: []
I would gladly use the includeCount=false but checking the documentation, I don't have that option in the command

To Reproduce
Steps to reproduce the behavior:
If I run only the command above, it works just fine, the problem is I'm running it in a loop, there are 435+ pages, so I think is overloading the server, if using includeCount=false actually fixes, I'm fine but I need that option in the CLI.

Expected behavior
Not throwing an error and getting the expected output

Screenshots
If possible, add screenshots to help explain your problem.
Screenshot 2024-03-01 at 11 02 16 AM copy

Desktop (please complete the following information):

  • OS:
    3.19.1
    NAME="Alpine Linux"
    ID=alpine
    VERSION_ID=3.19.1
    PRETTY_NAME="Alpine Linux v3.19"

  • MongoCLI version [e.g. 1.2]
    atlascli version: 1.14.2
    git version: 47dc06c
    Go version: go1.21.6
    os: linux
    arch: amd64
    compiler: gc

Additional context
As mentioned before, I don't get the error just running the command isolated, I get it after running the other 400+ pages, pretty sure is overloading the server to make such an expensive call to count the total amount. Just wanted to know if there is a way to send the includeCount=false that I'm missing or in fact this is an issue

Copy link
Contributor

github-actions bot commented Mar 1, 2024

Thanks for opening this issue. The ticket CLOUDP-234852 was created for internal tracking.

@andreaangiolillo
Copy link
Collaborator

Hello @LuisCordobaDataSite 👋 Thanks for opening the issue.

The fix will be available in the next AtlasCLI release scheduled for the 7th of March. Feel free to reopen this issue if you're still hitting this error with the latest release.

Thanks!

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 a pull request may close this issue.

2 participants