Azure / Azure/Azure-Functions

Error in azure functions for python deployment on azure (Error : Response status code does not indicate success: 400 (Bad Request)

Open
#1,316 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

I created the basic **python azure function HttpTrigger functions.** After creating this function I published it on local and it's working fine. But whenever I am trying to deploy it on azure, then I got the below error.

**Please check the Below Error:-**

Getting site publishing info...
Creating archive for current directory...
Directory .python_packages already in sync with requirements.txt. Skipping restoring dependencies...
Uploading 4.28 KB [###############################################################################]
Upload completed successfully.
Deployment completed successfully.
Response status code does not indicate success: 400 (Bad Request).

**Please check the below code that i have used:-**

import logging
import azure.functions as func

def main(req: func.HttpRequest) -> func.HttpResponse:
logging.info('Python HTTP trigger function processed a request.')
return func.HttpResponse(f"Hello!", status_code=200)
Is there any way to resolved the above error? Please let me know if any other option to solve the above issue.

**I have used Python 3.6.8
Azure Function location ;- West Europe**

Is there any way to solve the above Problem?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.