Azure / azure-functions-python-worker

Python worker for Azure Functions.
http://aka.ms/azurefunctions
MIT License
335 stars 103 forks source link

Exception: TypeError: TriggerApi.route() got an unexpected keyword argument 'http_auth_level' #1160

Closed lilyjma closed 1 year ago

lilyjma commented 1 year ago

Getting error below when specify auth level when using new programming model for Python. Error is gone if I don't specify http_auth_level inside @app.route(). Not sure if this is a bug.

image

Version info: image

YunchuWang commented 1 year ago

Hi @lilyjma, thanks for reporting this. the arg name for setting function level auth level is "auth_level", you can see from pydoc in vscode.

image image

changing to auth_level will work. thanks plz let us know if it works.