Skip to content

Azure Functions Beta runtime error "Status: 404 Not Found" #68

Closed
@Krande

Description

@Krande

Hi,

I tried running the code examples located in the docs using the beta version of Azure Functions but I am getting a "Status: 404 Not found" error when trying to run it. I have tried restarting the function server and re-writing/stripping the code, but without luck. Any ideas as to why this is happening?

main.py

import azure.functions

def main(req: azure.functions.HttpRequest) -> str:
    user = req.params.get('user', 'User')
    return f'Hello, {user}!

function.json

{
  "scriptFile": "main.py",
  "disabled": false,
  "bindings": [
    {
      "authLevel": "anonymous",
      "type": "httpTrigger",
      "direction": "in",
      "name": "req"
    },
    {
      "type": "http",
      "direction": "out",
      "name": "$return"
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions