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

Undefined response type #2866

Closed
LuisCordobaDataSite opened this issue Apr 16, 2024 · 3 comments
Closed

Undefined response type #2866

LuisCordobaDataSite opened this issue Apr 16, 2024 · 3 comments

Comments

@LuisCordobaDataSite
Copy link

Describe the bug
When I try to execute a command:
atlas logs download atlas-12uho2-shard-00-01.dssnf.mongodb.net mongodb-audit-log.gz --projectId 65a32c3fb244d862c601d12d --out /var/log/atlas/65a32c3fb244d862c601d12d_atlas-12uho2-shard-00-01.dssnf.mongodb.net_1712850826-1712852026-mongodb-audit-log.gz --start 1712850826 --end 1712852026
I get an error that says: "Error: undefined response type"
The reason I think this is a bug is that I was using this same code (the only difference is the timestamps), it started failing last week according to my logs, which match with your latest release.

To Reproduce
Steps to reproduce the behavior:

  1. Run: $ atlas logs download atlas-12uho2-shard-00-01.dssnf.mongodb.net mongodb-audit-log.gz --projectId 65a32c3fb244d862c601d12d --out /var/log/atlas/65a32c3fb244d862c601d12d_atlas-12uho2-shard-00-01.dssnf.mongodb.net_1712850826-1712852026-mongodb-audit-log.gz --start 1712850826 --end 1712852026
  2. See error: Error: undefined response type

Expected behavior
If the command is right, I expect it to download the logs.
If the command is wrong, a more detailed explanation of the problem would be very useful to fix it myself.

Screenshots
If possible, add screenshots to help explain your problem.

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.16.0
git version: 47dc06c
Go version: go1.21.6
os: linux
arch: amd64
compiler: gc

Additional context
Add any other context about the problem here.

Copy link
Contributor

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

@tibulca
Copy link
Collaborator

tibulca commented Apr 17, 2024

hi @LuisCordobaDataSite,
thanks for reporting this issue. We'll work on a fix (display error details) for the next release.
In the meantime you can use the --debug flag, which will display detailed information with the request and response from Atlas, including the error details:
atlas logs download atlas-12uho2-shard-00-01.dssnf.mongodb.net mongodb-audit-log.gz --projectId 65a32c3fb244d862c601d12d --out /var/log/atlas/65a32c3fb244d862c601d12d_atlas-12uho2-shard-00-01.dssnf.mongodb.net_1712850826-1712852026-mongodb-audit-log.gz --start 1712850826 --end 1712852026 --debug

@tibulca
Copy link
Collaborator

tibulca commented Apr 26, 2024

hi @LuisCordobaDataSite,
We have addressed this issue, and the atlas logs download command will now provide more detailed information about the cause of the error.

@tibulca tibulca closed this as completed Apr 26, 2024
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

No branches or pull requests

2 participants