Python 3.6 NotSupportedException with a Node.js backend
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
We are using Static Web Apps with a managed Node.js backend but sometimes we get a `System.NotSupportedException` with the following message: "Version 3.6 is not supported for language python".
Call stack:
```
System.NotSupportedException:
at Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcWorkerDescription.ValidateRuntimeVersion (Microsoft.Azure.WebJobs.Script, Version=4.15.0.0, Culture=neutral, PublicKeyToken=null: /src/azure-functions-host/src/WebJobs.Script/Workers/Rpc/RpcWorkerDescription.cs:150)
at Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcWorkerDescription.ValidateDefaultWorkerPathFormatters (Microsoft.Azure.WebJobs.Script, Version=4.15.0.0, Culture=neutral, PublicKeyToken=null: /src/azure-functions-host/src/WebJobs.Script/Workers/Rpc/RpcWorkerDescription.cs:126)
at Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcWorkerDescription.FormatWorkerPathIfNeeded (Microsoft.Azure.WebJobs.Script, Version=4.15.0.0, Culture=neutral, PublicKeyToken=null: /src/azure-functions-host/src/WebJobs.Script/Workers/Rpc/RpcWorkerDescription.cs:199)
at Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcWorkerConfigFactory.AddProvider (Microsoft.Azure.WebJobs.Script, Version=4.15.0.0, Culture=neutral, PublicKeyToken=null: /src/azure-functions-host/src/WebJobs.Script/Workers/Rpc/Configuration/RpcWorkerConfigFactory.cs:156)
```
Some exception properties:
```
Message: Version 3.6 is not supported for language python
Exception type: System.NotSupportedException
Failed method: Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcWorkerDescription.ValidateRuntimeVersion
Problem Id: System.NotSupportedException at Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcWorkerDescription.ValidateRuntimeVersion
Assembly: Microsoft.Azure.WebJobs.Script, Version=4.15.0.0, Culture=neutral, PublicKeyToken=null
Device type: PC
Client IP address: 0.0.0.0
SDK version: azurefunctions: 4.15.1.1
FormattedMessage: Failed to initialize worker provider for: /azure-functions-host/workers/python
```
**To Reproduce**
Generally, our application has a low amount of traffic but there are spikes during which the APIs may be called about 1500 times within a 10 minute period. During these times we see the `NotSupportedException`.
The `staticwebapp.config.json` is configured to use the `node:16` API runtime.
```json
{
"platform": {
"apiRuntime": "node:16"
}
}
```
**Expected behavior**
I would expect not to get Python related errors with a Node runtime.
**Screenshots**
Exception graph from Application Insights:

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.