Azure-Samples / fastapi-on-azure-functions

A sample to run a FastAPI app on Azure Functions
MIT License
89 stars 69 forks source link

testing locally process ends directly #22

Open fenchu opened 1 year ago

fenchu commented 1 year ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

I just try to run the sample locally to see if it works, but it just dies Below is the run with debug output from vscode:

& 'c:\dist\venvs\fastapi-on-azure-functions\Scripts\python.exe' 'c:\Users\mobj\.vscode\extensions\ms-python.python-2023.10.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher' '63728' '--' 'c:\dist\work\fastapi-on-azure-functions\function_app.py' 
just go back to the prompt. so there is no process taking the prompt.

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?) windows11

Versions

python --version Python 3.11.4

< pip freeze
anyio==3.7.0
azure-functions==1.15.0
fastapi==0.99.1
idna==3.4
pydantic==1.10.11
sniffio==1.3.0
starlette==0.27.0
typing_extensions==4.7.1

Mention any other details that might be useful


Thanks! We'll be in touch soon.

pamelafox commented 1 year ago

Does it work if you run "func host start"?