Azure managed function app for Azure Static Web App throwing error: Version 3.6 is not supported for language python

Ahmed Elharouny 6 Reputation points
2023-10-28T23:18:23.2066667+00:00

We have an Azure Static Web App that is using a managed Function App. In staticwebapp.config.json we have apiRuntime set to node:16:

{
  "platform": {
    "apiRuntime": "node:16"
  }
}

However, starting from 26th of October we are seeing those errors in Application Insights:

Version 3.6 is not supported for language pythonUser's image

FYI for some reason the API is still functioning, however Application Insights is flooded with errors and traces related to this error.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,925 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,178 questions
{count} votes

2 answers

Sort by: Most helpful
  1. VenkateshDodda-MSFT 25,111 Reputation points Microsoft Employee Moderator
    2023-10-31T10:31:10.5666667+00:00

    @Ahmed Elharouny Thanks for your patience on this.

    As mentioned in the documentation here Managed Functions on Static web Apps supports python version>=3.8. I would suggest you migrate you managed function code from python 3.6 to python 3.8 and check.


  2. Andriy Bilous 11,821 Reputation points MVP Volunteer Moderator
    2023-10-31T21:56:26.79+00:00

    Hello @Ahmed Elharouny

    According to Microsoft documentation Azure Static Web App supports Managed Functions with Python version >= 3.8
    You will need to update your code to at least python 3.8


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.