unhashable type: 'dict_node'
See original GitHub issueI’m getting this:
2018-04-22 00:46:35,869 - cfnlint - DEBUG - Get resources from template...
Traceback (most recent call last):
File "/usr/local/bin/cfn-lint", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/cfnlint/__main__.py", line 157, in main
matches.extend(runner.run())
File "/usr/local/lib/python3.6/dist-packages/cfnlint/__init__.py", line 560, in run
self.filename, self.cfn, self.ignore_checks))
File "/usr/local/lib/python3.6/dist-packages/cfnlint/__init__.py", line 107, in run
matches.extend(rule.matchall(filename, cfn))
File "/usr/local/lib/python3.6/dist-packages/cfnlint/__init__.py", line 55, in matchall
results = self.match(cfn) # pylint: disable=E1102
File "/usr/local/lib/python3.6/dist-packages/cfnlint/rules/resources/properties/Properties.py", line 195, in match
resourcetype, resourcename, path, True))
File "/usr/local/lib/python3.6/dist-packages/cfnlint/rules/resources/properties/Properties.py", line 131, in propertycheck
parenttype, resourcename, arrproppath, False))
File "/usr/local/lib/python3.6/dist-packages/cfnlint/rules/resources/properties/Properties.py", line 172, in propertycheck
resourcename, proppath, False))
File "/usr/local/lib/python3.6/dist-packages/cfnlint/rules/resources/properties/Properties.py", line 111, in propertycheck
if prop not in resourcespec:
TypeError: unhashable type: 'dict_node'
The template deploys just fine.
Issue Analytics
- State:
- Created 5 years ago
- Comments:21 (13 by maintainers)
Top Results From Across the Web
TypeError: unhashable type: 'dict' - python - Stack Overflow
You're trying to use a dict as a key to another dict or in a set . That does not work because the...
Read more >Python TypeError: unhashable type: 'dict' Solution
The “TypeError: unhashable type: 'dict'” error is raised when you try to create an item in a dictionary whose key is an unhashable...
Read more >TypeError unhashable type 'dict' - STechies
This means that you are trying to hash an unhashable object. In simple terms, this error occurs when your code tries to hash...
Read more >TypeError: unhashable type: 'dict' - Discussions on Python.org
Hello,. Here is my error: TypeError: unhashable type: 'dict'. Here is the source that is used to handle such an output error:
Read more >Utilities - SageMath Documentation
These are functions so that you can write foo(x) instead of x.foo() in certain common ... TypeError: unhashable type: 'sage.rings.padics.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I got unhashable type: ‘dict_node’ error when I add !IF condition in my template. PersonServiceApi: Type: AWS::Serverless::Api Properties: Name: !Sub ${StageName}-PersonAPI StageName: !Ref StageName Auth: DefaultAuthorizer: !If - IsMaster - !Sub ‘None’ - !Ref CustomAuthorizer Authorizers: CustomAuthorizer: FunctionPayloadType: REQUEST FunctionArn: !GetAtt ApiGatewayAuthorizerLambda.Arn FunctionInvokeRole: !Ref ApiGatewayLambdaExecutionRole Identity: Headers: - cookie ReauthorizeEvery: 0 DefinitionBody: openapi: 3.0.0 info:
At the very least I’m working on a change now to more gracefully catch this issue going forward.