Python Azure Function giving 500 Internal Server Error when running from code+test

Vishnuprasad KR 1 Reputation point
2021-10-20T12:12:51.08+00:00

Hi, I have an function app developed using Python.
The deployment was done from VS Code.
Function app contains trimer triggered functions.
All these functions are running as expected on schedule.

However when I try running the function from Code+Test, it is giving me 500 - Internal Server Error.

It is definitely not a code issue, because the same code is running fine on different function app.
Only on this particular function app, I am getting this error, when executed from Code+Test.

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

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 68,471 Reputation points
    2021-10-21T07:11:28.047+00:00

    @Vishnuprasad KR As you have confirmed that your same code works on a different function app but when deployed to another azure function you receive 500 errors. In that case, looks like there might be some configuration in your local.setting.json that might not be created under the application setting in the azure function. You can compare the application setting with the working and non-working function app.

    I will also suggest you to review Azure Functions diagnostics to find the root cause of the 500 error. Alternatively, you can also review your application insights logs for your function to know more about the full exception trace/error message that is causing 500 errors.

    0 comments No comments