Closed v-dantch closed 4 years ago
@v-dantch whitespace matters in python files. I probably didn't copy/paste the code correctly into OneNote, but @nturinski has since updated the test case. Try copying/pasting again and see if it looks more like this:
Hi Eric, Nathan, today we verified this issue on the public Azure Functions Extension v0.20.0 and it works well lol according to your share. And I will close this bug for now.
This issue also reproduces on Azure Functions extension 20200406.12, reopen it.
@v-ruizh this one was not a bug in the extension, but a bug in the __init__.py
file, so please double check that file. If you're still having problems - please file a new issue with new repro steps
OS: All Build: 20191031.33
Repro Steps:
Modify the _init.py_ file like below. import logging import sys import azure.functions as func
def main(req: func.HttpRequest) -> func.HttpResponse: logging.info('Python HTTP trigger function processed a request.') return func.HttpResponse( f"Python Version: {sys.version_info[0]}.{sys.version_info[1]}", status_code=400 )
Expect: Succeed to get the correct Python version that selected in previous step.
Actual: Nothing displays.