Open JoseRolles opened 2 years ago
Hi Jose,
Let me run some tests.
I was able to replicate the issue and found that this is a bug in PyYaml accordingly to this thread: https://github.com/yaml/pyyaml/issues/594 I will think in how we can solve this issue by:
Hello to both of you!
I happen to have the same (or similar) error. When trying to "parse" a template in YAML, it fails for me in: https://github.com/awslabs/aws-cfn-template-flip/blob/master/cfn_flip/__init__.py#L27 raising:
JSONDecodeError
Expecting value: line 1 column 1 (char 0)
When either a str
or bytes
is passed as the parameter and including a tab character, in any of its forms \t
or <tab character>
(being the second one just a tab in the IDE.
I tried to "clean" tabs (can do in its first form) when in a str
before calling the function and it works, but no clue on the second type of tab.
Is it the same error? Any clue?
Thank you both in advance!
This doesn't work:
This works:
When using AWS CloudFormation Designer, somehow it still validates without issue.