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

=== Unhandled exception === when running cfn validate #1041

Open
gittemo opened this issue Nov 7, 2023 · 0 comments
Open

=== Unhandled exception === when running cfn validate #1041

gittemo opened this issue Nov 7, 2023 · 0 comments

Comments

@gittemo
Copy link

gittemo commented Nov 7, 2023

Logs:

[2023-11-07T02:04:57Z] DEBUG    - Logging set up successfully
[2023-11-07T02:04:57Z] DEBUG    - Running validate: Namespace(version=False, subparser_name='validate', command=<function validate at 0x0000024AF764CAF0>, verbose=0)
[2023-11-07T02:04:57Z] DEBUG    - Root directory: C:\Users\jonan\apiv2\infra\modules\proxy
[2023-11-07T02:04:57Z] DEBUG    - Loading project file 'C:\Users\jonan\apiv2\infra\modules\proxy\.rpdk-config'
[2023-11-07T02:04:57Z] INFO     - Validating your module fragments...
[2023-11-07T02:04:57Z] DEBUG    - Fragment directory: C:\Users\jonan\apiv2\infra\modules\proxy\fragments
[2023-11-07T02:04:57Z] DEBUG    - Unhandled exception
Traceback (most recent call last):
  File "C:\Users\jonan\AppData\Local\Programs\Python\Python310\lib\site-packages\rpdk\core\cli.py", line 105, in main
    args.command(args)
  File "C:\Users\jonan\AppData\Local\Programs\Python\Python310\lib\site-packages\rpdk\core\validate.py", line 14, in validate
    project.load()
  File "C:\Users\jonan\AppData\Local\Programs\Python\Python310\lib\site-packages\rpdk\core\project.py", line 560, in load
    self._load_modules_project()
  File "C:\Users\jonan\AppData\Local\Programs\Python\Python310\lib\site-packages\rpdk\core\project.py", line 583, in _load_modules_project
    self._validate_fragments(template_fragment)
  File "C:\Users\jonan\AppData\Local\Programs\Python\Python310\lib\site-packages\rpdk\core\project.py", line 614, in _validate_fragments
    template_fragment.validate_fragments()
  File "C:\Users\jonan\AppData\Local\Programs\Python\Python310\lib\site-packages\rpdk\core\fragment\generator.py", line 74, in validate_fragments
    self.__validate_parameters(raw_fragments)
  File "C:\Users\jonan\AppData\Local\Programs\Python\Python310\lib\site-packages\rpdk\core\fragment\generator.py", line 160, in __validate_parameters
    if "Type" not in parameter:
TypeError: argument of type 'NoneType' is not iterable
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

1 participant