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

Execution Failure 'str' object has no attribute 'items' #4799

Closed
vishakh-falcon opened this issue Aug 20, 2024 · 4 comments · Fixed by #4817
Closed

Execution Failure 'str' object has no attribute 'items' #4799

vishakh-falcon opened this issue Aug 20, 2024 · 4 comments · Fixed by #4817
Assignees
Labels
bug severity/high Bug capable of collapsing large parts of the execution. status/waiting-for-revision Waiting for maintainer's revision

Comments

@vishakh-falcon
Copy link

Steps to Reproduce

  1. Ran the command "prowler aws" with IAM credentials configured in the environment variables
  2. The application/code runs for nearly 40mins and then fails at the error 'str' object has no attribute 'items'
  3. No data/compliance event reports (json, csv) are written into the ./output/compliance folder
Screenshot_2024-08-19_at_8_39_33 PM

Expected behavior

As expected behavior, the application should complete the execution successfully and then generate the compliance reports (csv, json)

Actual Result with Screenshots or Logs

Screenshot_2024-08-19_at_8_39_33 PM Attached is the screenshot of the execution

How did you install Prowler?

From pip package (pip install prowler)

Environment Resource

  1. Launched/tried from Amazon EC2 Amzn Linux 2 and Linux 3 servers
  2. Launched/tried from MacOS M1 Pro with Sonoma OS

OS used

  1. Launched/tried from Amazon EC2 Amzn Linux 2 and Linux 3 servers
  2. Launched/tried from MacOS M1 Pro with Sonoma OS

Prowler version

Prowler 4.3.3

Pip version

pip 24.2 with python 3.12

Context

No response

@vishakh-falcon vishakh-falcon added bug status/needs-triage Issue pending triage labels Aug 20, 2024
@pedrooot
Copy link
Member

Hey! @vishakh-falcon this issue is related with #4740
To get more info from this, could you share with me the syntax of the resource tags? This way we can track the error easier, if you have serveral tags and is difficult to get the one failing, you can add a print(tags) just before this line:
return {key: value for d in tags for key, value in d.items()}
Thanks for reporting this!

@pedrooot pedrooot added status/waiting-for-revision Waiting for maintainer's revision severity/high Bug capable of collapsing large parts of the execution. and removed status/needs-triage Issue pending triage labels Aug 20, 2024
@pedrooot pedrooot self-assigned this Aug 20, 2024
@pedrooot
Copy link
Member

Hey! @vishakh-falcon in this pr you can find the solution for your issue, tell me if that works for you!

@vishakh-falcon
Copy link
Author

Hi @pedrooot Thanks for your response and sharing the information.
I see the fix is not merged or released with new app version for validation

Merging is blocked
Merging can be performed automatically with 1 approving review.

@pedrooot
Copy link
Member

Hey! @vishakh-falcon It's already merged on master and we will add this to the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug severity/high Bug capable of collapsing large parts of the execution. status/waiting-for-revision Waiting for maintainer's revision
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants