serverless-azure-functions icon indicating copy to clipboard operation
serverless-azure-functions copied to clipboard

python: Cannot read property 'x-azure-settings' of undefined

Open bitsofinfo opened this issue 4 years ago • 1 comments

10:02 $ serverless -v
Framework Core: 2.44.0
Plugin: 5.2.0
SDK: 4.2.3
Components: 3.11.0
serverless create -t azure-python -p test1

cd test1
npm install
serverless offline
Serverless: Initializing provider configuration...
Serverless: Python functions can ONLY run on Linux Function Apps. Switching now
Serverless: Building offline service
Serverless: Parsing Azure Functions Bindings.json...
Serverless: Parsing Azure Functions Bindings.json...
Serverless: Building binding for function: hello event: httpTrigger
 
 Type Error ----------------------------------------------
 
  TypeError: Cannot read property 'x-azure-settings' of undefined

bitsofinfo avatar Jun 04 '21 16:06 bitsofinfo

If I change

  "devDependencies": {
    "serverless-azure-functions": "1.0.2-22"
  }

to

  "devDependencies": {
    "serverless-azure-functions": "^2.0.0"
  }

then npm install

and serverless offline... then it works

Why is the template for azure-python referencing this old version?

bitsofinfo avatar Jun 04 '21 16:06 bitsofinfo