-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Security-Hub Get-Findings returning 'list' Error #7985
Comments
Added : I also managed to extract 1000 entries, i'm guessing at some point it's just too much data |
Hi @Quentin90, thanks for reaching out. Could you provide debug logs of this behavior? You can get debug logs by adding |
Hello again ! Here is the output with --debug, sorry but i had to redact most of the data inside the body and headers.
Using --max-items 18000, we also had this warning : Thank you for your time. |
Update : We tried to export the file and load it using powershell and we were prompted with the error :
Command used :
We are guessing that there are some characters not handled properly when outputing to json (which is default i thinki) |
We finally got a hold on the bug, It's not related to the size, only a special charater.. We can't bypass this error as the result of this command contain the next "starting-token". Regards |
Hi @Quentin90, thanks for following up. I agree with your conclusion that this is related to a specific character. Could you tell me if that error is found in the response body, or if the response looks fine and the error shows up between response and output? Once I know that, I'll raise this issue with the appropriate team (service team or CLI team). |
Hello @RyanFitzSimmonsAK , No problem, So here is two output for the same command, the first one is a working one, and the second one is where the bug is happening.
after the output above, the command continues and i see requests configs and then the header/body And for the bugged one :
Have a nice day ! |
Hi @Quentin90, thanks for following up. Those logs didn't quite get what I'm after though. When the bug happens, take a look at the response body, and tell me if it looks normal, or if the response is an error. Thanks! |
Hi again @RyanFitzSimmonsAK, There is no body nor other logs after the error, the CLI stop with this error. Regards, |
Hi @Quentin90, thanks for your patience. I was able to reproduce this behavior. It looks like this is a general bug with the CLI, rather than Security Hub specific. Steps to reproduce
I'll bring this issue up with the team and leave this issue open to track any updates. Thanks again for raising this. |
describe the bug in the process of the following log in circuit of the file.Attach files in the process for the log connectivity.also mention the circuit criteria for it. |
The AWS CLI uses the encoding provided by the system. From #8283, easiest solution to this is changing the system locale and setting the environment variable |
|
Describe the bug
Hello !
I wanted to output security-hub data to a json file.
When i export my findings from the us-east-1 region everything works well,
Command used :
aws securityhub get-findings --region <eu-west-1/us-east-1>
But when i try to export the findings from the eu-west-1 region i get an error :
'list' object has no attribute 'items'.
I tried to debug it but with no success.
For example, i can use
--max-items 1 --region eu-west-1
and i can retrieve 1 Entry, but never the full dataHave a nice day.
Q.
Expected Behavior
Output the full data from the eu-west-1 region.
Current Behavior
Function call crash with output :
'list' object has no attribute 'items'.
Reproduction Steps
Prerequisites for reproduction :
Possible Solution
No response
Additional Information/Context
No response
CLI version used
2.12.1
Environment details (OS name and version, etc.)
Windows 10
The text was updated successfully, but these errors were encountered: