Share via

Azure Function Error

Nyong, ChinVenn 20 Reputation points
2025-10-23T07:41:25.3166667+00:00

Anyone has faced this error before? I have tested with different python version, but the error still persists. Seems like oryx issue here

Error: Oops... An unexpected error has occurred.\nError: System.ArgumentNullException: Value cannot be null. (Parameter 'node')\n at System.ArgumentNullException.Throw(String paramName)\n at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)\n at System.Xml.XPath.Extensions.XPathSelectElements(XNode node, String expression, IXmlNamespaceResolver resolver)\n at Microsoft.Oryx.BuildScriptGenerator.SdkStorageVersionProviderBase.GetAvailableVersionsFromStorage(String platformName) in /__w/1/s/Oryx/src/BuildScriptGenerator/SdkStorageVersionProviderBase.cs:line 77\n at Microsoft.Oryx.BuildScriptGenerator.Python.PythonSdkStorageVersionProvider.GetVersionInfo() in /__w/1/s/Oryx/src/BuildScriptGenerator/Python/VersionProviders/PythonSdkStorageVersionProvider.cs:line 25\n at Microsoft.Oryx.BuildScriptGenerator.Python.PythonVersionProvider.GetVersionInfo() in /__w/1/s/Oryx/src/BuildScriptGenerator/Python/VersionProviders/PythonVersionProvider.cs:line 53\n at Microsoft.Oryx.BuildScriptGenerator.Python.PythonPlatform.get_SupportedVersions() in /__w/1/s/Oryx/src/BuildScriptGenerator/Python/PythonPlatform.cs:line 130\n at Microsoft.Oryx.BuildScriptGenerator.Python.PythonPlatform.GetMaxSatisfyingVersionAndVerify(String version) in /__w/1/s/Oryx/src/BuildScriptGenerator/Python/PythonPlatform.cs:line 673\n at Microsoft.Oryx.BuildScriptGenerator.Python.PythonPlatform.ResolveVersions(RepositoryContext context, PlatformDetectorResult detectorResult) in /__w/1/s/Oryx/src/BuildScriptGenerator/Python/PythonPlatform.cs:line 442\n at Microsoft.Oryx.BuildScriptGenerator.Python.PythonPlatform.Detect(RepositoryContext context) in /__w/1/s/Oryx/src/BuildScriptGenerator/Python/PythonPlatform.cs:line 148\n at Microsoft.Oryx.BuildScriptGenerator.DefaultPlatformsInformationProvider.GetPlatformsInfo(RepositoryContext context) in /__w/1/s/Oryx/src/BuildScriptGenerator/DefaultPlatformsInformationProvider.cs:line 65\n at Microsoft.Oryx.BuildScriptGenerator.DefaultBuildScriptGenerator.GenerateBashScript(BuildScriptGeneratorContext context, String& script, List1 checkerMessageSink) in /__w/1/s/Oryx/src/BuildScriptGenerator/DefaultBuildScriptGenerator.cs:line 75\n at Microsoft.Oryx.BuildScriptGeneratorCli.BuildScriptGenerator.TryGenerateScript(String& generatedScript, Exception& exception) in /__w/1/s/Oryx/src/BuildScriptGeneratorCli/BuildScriptGenerator.cs:line 63\n at Microsoft.Oryx.BuildScriptGeneratorCli.BuildCommand.Execute(IServiceProvider serviceProvider, IConsole console) in /__w/1/s/Oryx/src/BuildScriptGeneratorCli/Commands/BuildCommand.cs:line 278\n at Microsoft.Oryx.BuildScriptGeneratorCli.CommandBase.OnExecute(IConsole console) in /__w/1/s/Oryx/src/BuildScriptGeneratorCli/Commands/CommandBase.cs:line 87\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform python --platform-version 3.11.8 -p packagedir=.python_packages/lib/site-packages More information: Error: Oops... An unexpected error has occurred. Error: System.ArgumentNullException: Value cannot be null. (Parameter 'node') at System.ArgumentNullException.Throw(String paramName) at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName) at System.Xml.XPath.Extensions.XPathSelectElements(XNode node, String expression, IXmlNamespaceResolver resolver) at Microsoft.Oryx.BuildScriptGenerator.SdkStorageVersionProviderBase.GetAvailableVersionsFromStorage(String platformName) in /__w/1/s/Oryx/src/BuildScriptGenerator/SdkStorageVersionProviderBase.cs:line 77 at Microsoft.Oryx.BuildScriptGenerator.Python.PythonSdkStorageVersionProvider.GetVersionInfo() in /__w/1/s/Oryx/src/BuildScriptGenerator/Python/VersionProviders/PythonSdkStorageVersionProvider.cs:line 25 at Microsoft.Oryx.BuildScriptGenerator.Python.PythonVersionProvider.GetVersionInfo() in /__w/1/s/Oryx/src/BuildScriptGenerator/Python/VersionProviders/PythonVersionProvider.cs:line 53 at Microsoft.Oryx.BuildScriptGenerator.Python.PythonPlatform.get_SupportedVersions() in /__w/1/s/Oryx/src/BuildScriptGenerator/Python/PythonPlatform.cs:line 130 at Microsoft.Oryx.BuildScriptGenerator.Python.PythonPlatform.GetMaxSatisfyingVersionAndVerify(String version) in /__w/1/s/Oryx/src/BuildScriptGenerator/Python/PythonPlatform.cs:line 673 at Microsoft.Oryx.BuildScriptGenerator.Python.PythonPlatform.ResolveVersions(RepositoryContext context, PlatformDetectorResult detectorResult) in /__w/1/s/Oryx/src/BuildScriptGenerator/Python/PythonPlatform.cs:line 442 at Microsoft.Oryx.BuildScriptGenerator.Python.PythonPlatform.Detect(RepositoryContext context) in /__w/1/s/Oryx/src/BuildScriptGenerator/Python/PythonPlatform.cs:line 148 at Microsoft.Oryx.BuildScriptGenerator.DefaultPlatformsInformationProvider.GetPlatformsInfo(RepositoryContext context) in /__w/1/s/Oryx/src/BuildScriptGenerator/DefaultPlatformsInformationProvider.cs:line 65 at Microsoft.Oryx.BuildScriptGenerator.DefaultBuildScriptGenerator.GenerateBashScript(BuildScriptGeneratorContext context, String& script, List1 checkerMessageSink) in /__w/1/s/Oryx/src/BuildScriptGenerator/DefaultBuildScriptGenerator.cs:line 75 at Microsoft.Oryx.BuildScriptGeneratorCli.BuildScriptGenerator.TryGenerateScript(String& generatedScript, Exception& exception) in /__w/1/s/Oryx/src/BuildScriptGeneratorCli/BuildScriptGenerator.cs:line 63 at Microsoft.Oryx.BuildScriptGeneratorCli.BuildCommand.Execute(IServiceProvider serviceProvider, IConsole console) in /__w/1/s/Oryx/src/BuildScriptGeneratorCli/Commands/BuildCommand.cs:line 278 at Microsoft.Oryx.BuildScriptGeneratorCli.CommandBase.OnExecute(IConsole console) in /__w/1/s/Oryx/src/BuildScriptGeneratorCli/Commands/CommandBase.cs:line 87

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


Answer accepted by question author

Pravallika KV 17,025 Reputation points Microsoft External Staff Moderator
2025-10-30T03:34:52.32+00:00

Hi Nyong, ChinVenn,

Glad to know that your issue is resolved.

I am summarizing and posting the discussion as an answer below.

The issue occurred because the virtual network used a private IP, preventing direct outbound access to public endpoints such as APIs, NuGet, or Azure service URLs. Since those URLs weren’t reachable, deployment and connectivity operations failed.

To resolve the connectivity issue, a proxy configuration was added to route outbound traffic from the private network to the public networks. After setting up the proxy, the Function App was able to reach the required URLs, and able to deploy the function successfully.

Hope it helps!


Please do not forget to click "Accept the answer” and Yes, this can be beneficial to other community members.

User's image

If you have any other questions, let me know in the "comments" and I would be happy to help you.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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