We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
os.getenv('RAW_BODY') returns None if not defined, causing a TypeError in python3-flask-debian (potentially in others)
os.getenv('RAW_BODY')
None
File "index.py", line 13, in is_true return len(val) > 0 and val.lower() == "true" or val == "1" TypeError: object of type 'NoneType' has no len()
https://github.com/openfaas-incubator/python-flask-template/blob/7f9288a527b4c2b8acabb2271c38c4d3745d4310/template/python3-flask-debian/index.py#L12-L13
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
os.getenv('RAW_BODY')
returnsNone
if not defined, causing a TypeError in python3-flask-debian (potentially in others)https://github.com/openfaas-incubator/python-flask-template/blob/7f9288a527b4c2b8acabb2271c38c4d3745d4310/template/python3-flask-debian/index.py#L12-L13
The text was updated successfully, but these errors were encountered: