TypeError: deprecated() got an unexpected keyword argument 'name'

Art 26 Reputation points
2022-10-03T22:45:49.767+00:00

Testing a function deployed to Azure Function App, results in following exception.

Result: FailureException: TypeError: deprecated() got an unexpected keyword argument 'name'Stack: File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/dispatcher.py", line 355

The function works successfully using local host. Example: {"Message": "Request succeeded", "Status Code": 200}
Note: Function uses Python HTTP trigger.

Does anyone know what could be the issue?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,261 questions
{count} votes

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,141 Reputation points
    2022-10-12T17:01:53.587+00:00

    @Rayen Harchay Thanks for sharing the exception.

    @Art
    Based on the stack trace, it uses pyopenssl and there is an issue #1151 with this repo discussing this problem. I would recommend you checking cryptography version based on this comment. If you still face the issue, add a comment there so that experts from the repo can assist you further.

    I would be happy to assist you if any other questions. Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community.


0 additional answers

Sort by: Most helpful