We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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.
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: