The HOSTNAME environment variable is not available in faasd, which makes any function using the python3-http template fail with the following error with a KeyError exception.
Just to note for anyone who lands here, this issue was seen with faasd and when running the template directly on MacOS outside of a container where HOSTNAME wasn't available as an env-var.
The
HOSTNAME
environment variable is not available in faasd, which makes any function using thepython3-http
template fail with the following error with aKeyError
exception.Setting a default value should fix this issue
Signed-off-by: Mehdi Yedes mehdi.yedes@gmail.com