question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] WebPubSub binding doesn't work on Static Web Apps

See original GitHub issue

Describe the bug The repo for Azure Static Web Apps (https://github.com/horihiro/webpubsub-swa-test) has a backend API (/api). When adding Azure Web PubSub binding to the API like this example and deploy this, the API of the Static Web App becomes down.

Expected behavior It is expected that the API is up normally.

Actual behavior (include Exception or Stack Trace) As the following screenshot, the API is down. image

In stack trace from Application Insights, the method Initialize of class WebPubSubConfigProvider is found at Level 15.

  {
    "assembly": "Microsoft.Azure.WebJobs.Extensions.WebPubSub, Version=1.0.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8",
    "method": "Microsoft.Azure.WebJobs.Extensions.WebPubSub.WebPubSubConfigProvider.Initialize",
    "level": 15,
    "line": 0
  },

To Reproduce My repo (https://github.com/horihiro/webpubsub-swa-test) can reproduce this issue.

  1. add a step which installs Web PubSub extension to GitHub Action https://github.com/horihiro/webpubsub-swa-test/commit/a3efbab0da9e5017f73908589a670358330536ad
  2. add Web PubSub binding to function.json of a function of the API https://github.com/horihiro/webpubsub-swa-test/commit/5f0dedff20ef17c4d5eb329c731bf05af4f3b1d4
  3. remove extension bundle information from host.json of the API https://github.com/horihiro/webpubsub-swa-test/commit/e2495e7bbed02805dcde31bf55700b28062c4bb2
  4. execute GitHub Action

Environment:

  • Name and version of the Library package used: Microsoft.Azure.WebJobs.Extensions.WebPubSub@1.0.0-beta.1
  • Hosting platform or OS and .NET runtime version (dotnet --info output for .NET Core projects): Backend API of Azure Static Web Apps
  • IDE and version : GitHub Action
Full stack trace

[
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "Microsoft.Azure.WebJobs.Script.WebHost.DefaultSecretManagerProvider.CreateSecretsRepository",
    "level": 0,
    "line": 89,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/Security/KeyManagement/DefaultSecretManagerProvider.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "Microsoft.Azure.WebJobs.Script.WebHost.DefaultSecretManagerProvider.Create",
    "level": 1,
    "line": 55,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/Security/KeyManagement/DefaultSecretManagerProvider.cs"
  },
  {
    "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
    "method": "System.Lazy`1.ViaFactory",
    "level": 2,
    "line": 0
  },
  {
    "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
    "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
    "level": 3,
    "line": 0
  },
  {
    "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
    "method": "System.Lazy`1.CreateValue",
    "level": 4,
    "line": 0
  },
  {
    "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
    "method": "System.Lazy`1.get_Value",
    "level": 5,
    "line": 0
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "Microsoft.Azure.WebJobs.Script.WebHost.DefaultSecretManagerProvider.get_Current",
    "level": 6,
    "line": 51,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/Security/KeyManagement/DefaultSecretManagerProvider.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "Microsoft.Azure.WebJobs.Script.WebHost.DefaultScriptWebHookProvider+<GetOrCreateExtensionKey>d__7.MoveNext",
    "level": 7,
    "line": 73,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/WebHooks/DefaultScriptWebHookProvider.cs"
  },
  {
    "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
    "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
    "level": 8,
    "line": 0
  },
  {
    "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
    "method": "System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess",
    "level": 9,
    "line": 0
  },
  {
    "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
    "method": "System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification",
    "level": 10,
    "line": 0
  },
  {
    "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
    "method": "System.Runtime.CompilerServices.TaskAwaiter`1.GetResult",
    "level": 11,
    "line": 0
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "Microsoft.Azure.WebJobs.Script.WebHost.DefaultScriptWebHookProvider.GetExtensionWebHookRoute",
    "level": 12,
    "line": 66,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/WebHooks/DefaultScriptWebHookProvider.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "Microsoft.Azure.WebJobs.Script.WebHost.DefaultScriptWebHookProvider.GetUrl",
    "level": 13,
    "line": 51,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/WebHooks/DefaultScriptWebHookProvider.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Host, Version=3.0.27.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
    "method": "Microsoft.Azure.WebJobs.Host.Config.ExtensionConfigContext.GetWebhookHandler",
    "level": 14,
    "line": 55,
    "fileName": "C:\\projects\\azure-webjobs-sdk-rqm4t\\src\\Microsoft.Azure.WebJobs.Host\\Config\\ExtensionConfigContext.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Extensions.WebPubSub, Version=1.0.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8",
    "method": "Microsoft.Azure.WebJobs.Extensions.WebPubSub.WebPubSubConfigProvider.Initialize",
    "level": 15,
    "line": 0
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Host, Version=3.0.27.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
    "method": "Microsoft.Azure.WebJobs.Host.DefaultExtensionRegistryFactory.Create",
    "level": 16,
    "line": 34,
    "fileName": "C:\\projects\\azure-webjobs-sdk-rqm4t\\src\\Microsoft.Azure.WebJobs.Host\\DefaultExtensionRegistryFactory.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Host, Version=3.0.27.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
    "method": "Microsoft.Azure.WebJobs.WebJobsServiceCollectionExtensions+<>c.<AddWebJobs>b__1_0",
    "level": 17,
    "line": 57,
    "fileName": "C:\\projects\\azure-webjobs-sdk-rqm4t\\src\\Microsoft.Azure.WebJobs.Host\\Hosting\\WebJobsServiceCollectionExtensions.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Microsoft.DependencyInjection.DryIocAdapter+<>c__DisplayClass3_0.<RegisterDescriptor>b__0",
    "level": 18,
    "line": 156,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/DryIocAdapter.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Registrator+<>c__DisplayClass27_0.<RegisterDelegate>b__0",
    "level": 19,
    "line": 4550,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
    "method": "System.Linq.Expressions.Interpreter.FuncCallInstruction`3.Run",
    "level": 20,
    "line": 0
  },
  {
    "assembly": "System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
    "method": "System.Linq.Expressions.Interpreter.Interpreter.Run",
    "level": 21,
    "line": 0
  },
  {
    "assembly": "System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
    "method": "System.Linq.Expressions.Interpreter.LightLambda.Run",
    "level": 22,
    "line": 0
  },
  {
    "assembly": "Anonymously Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "Thunk",
    "level": 23,
    "line": 0
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory+<>c__DisplayClass26_0.<ApplyReuse>b__2",
    "level": 24,
    "line": 6605,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Scope.TryGetOrAdd",
    "level": 25,
    "line": 7849,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Scope.GetOrAdd",
    "level": 26,
    "line": 7834,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory.ApplyReuse",
    "level": 27,
    "line": 6604,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory.GetExpressionOrDefault",
    "level": 28,
    "line": 6564,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory.GetDelegateOrDefault",
    "level": 29,
    "line": 6634,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.DelegateFactory.GetDelegateOrDefault",
    "level": 30,
    "line": 7746,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Container.DryIoc.IResolver.Resolve",
    "level": 31,
    "line": 291,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
    "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
    "level": 32,
    "line": 0
  },
  {
    "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
    "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
    "level": 33,
    "line": 0
  },
  {
    "assembly": "System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
    "method": "System.Linq.Expressions.Interpreter.ExceptionHelpers.UnwrapAndRethrow",
    "level": 34,
    "line": 0
  },
  {
    "assembly": "System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
    "method": "System.Linq.Expressions.Interpreter.MethodInfoCallInstruction.Run",
    "level": 35,
    "line": 0
  },
  {
    "assembly": "System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
    "method": "System.Linq.Expressions.Interpreter.Interpreter.Run",
    "level": 36,
    "line": 0
  },
  {
    "assembly": "System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
    "method": "System.Linq.Expressions.Interpreter.LightLambda.Run",
    "level": 37,
    "line": 0
  },
  {
    "assembly": "Anonymously Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "Thunk",
    "level": 38,
    "line": 0
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory+<>c__DisplayClass26_0.<ApplyReuse>b__2",
    "level": 39,
    "line": 6605,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Scope.TryGetOrAdd",
    "level": 40,
    "line": 7849,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Scope.GetOrAdd",
    "level": 41,
    "line": 7834,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory.ApplyReuse",
    "level": 42,
    "line": 6604,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory.GetExpressionOrDefault",
    "level": 43,
    "line": 6564,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory.GetDelegateOrDefault",
    "level": 44,
    "line": 6634,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Container.ResolveAndCacheDefaultFactoryDelegate",
    "level": 45,
    "line": 211,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Container.DryIoc.IResolver.Resolve",
    "level": 46,
    "line": 196,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "Microsoft.Azure.WebJobs.Script.WebHost.DependencyInjection.JobHostServiceProvider.GetService",
    "level": 47,
    "line": 99,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/JobHostServiceProvider.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "Microsoft.Azure.WebJobs.Script.WebHost.DependencyInjection.JobHostServiceProvider.GetRequiredService",
    "level": 48,
    "line": 82,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/JobHostServiceProvider.cs"
  },
  {
    "assembly": "Microsoft.Extensions.DependencyInjection.Abstractions, Version=3.1.14.0, Culture=neutral, PublicKeyToken=adb9793829ddae60",
    "method": "Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService",
    "level": 49,
    "line": 0
  },
  {
    "assembly": "Microsoft.Extensions.DependencyInjection.Abstractions, Version=3.1.14.0, Culture=neutral, PublicKeyToken=adb9793829ddae60",
    "method": "Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService",
    "level": 50,
    "line": 0
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Host, Version=3.0.27.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35",
    "method": "Microsoft.Azure.WebJobs.WebJobsServiceCollectionExtensions+<>c.<AddWebJobs>b__1_4",
    "level": 51,
    "line": 92,
    "fileName": "C:\\projects\\azure-webjobs-sdk-rqm4t\\src\\Microsoft.Azure.WebJobs.Host\\Hosting\\WebJobsServiceCollectionExtensions.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Microsoft.DependencyInjection.DryIocAdapter+<>c__DisplayClass3_0.<RegisterDescriptor>b__0",
    "level": 52,
    "line": 156,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/DryIocAdapter.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Registrator+<>c__DisplayClass27_0.<RegisterDelegate>b__0",
    "level": 53,
    "line": 4550,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
    "method": "System.Linq.Expressions.Interpreter.FuncCallInstruction`3.Run",
    "level": 54,
    "line": 0
  },
  {
    "assembly": "System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
    "method": "System.Linq.Expressions.Interpreter.Interpreter.Run",
    "level": 55,
    "line": 0
  },
  {
    "assembly": "System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
    "method": "System.Linq.Expressions.Interpreter.LightLambda.Run",
    "level": 56,
    "line": 0
  },
  {
    "assembly": "Anonymously Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "Thunk",
    "level": 57,
    "line": 0
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory+<>c__DisplayClass26_0.<ApplyReuse>b__2",
    "level": 58,
    "line": 6605,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Scope.TryGetOrAdd",
    "level": 59,
    "line": 7849,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Scope.GetOrAdd",
    "level": 60,
    "line": 7834,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory.ApplyReuse",
    "level": 61,
    "line": 6604,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory.GetExpressionOrDefault",
    "level": 62,
    "line": 6564,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory.GetDelegateOrDefault",
    "level": 63,
    "line": 6634,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.DelegateFactory.GetDelegateOrDefault",
    "level": 64,
    "line": 7746,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Container.DryIoc.IResolver.Resolve",
    "level": 65,
    "line": 291,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
    "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
    "level": 66,
    "line": 0
  },
  {
    "assembly": "System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e",
    "method": "System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw",
    "level": 67,
    "line": 0
  },
  {
    "assembly": "System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
    "method": "System.Linq.Expressions.Interpreter.ExceptionHelpers.UnwrapAndRethrow",
    "level": 68,
    "line": 0
  },
  {
    "assembly": "System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
    "method": "System.Linq.Expressions.Interpreter.MethodInfoCallInstruction.Run",
    "level": 69,
    "line": 0
  },
  {
    "assembly": "System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
    "method": "System.Linq.Expressions.Interpreter.Interpreter.Run",
    "level": 70,
    "line": 0
  },
  {
    "assembly": "System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
    "method": "System.Linq.Expressions.Interpreter.LightLambda.Run",
    "level": 71,
    "line": 0
  },
  {
    "assembly": "Anonymously Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "Thunk",
    "level": 72,
    "line": 0
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory+<>c__DisplayClass26_0.<ApplyReuse>b__2",
    "level": 73,
    "line": 6605,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Scope.TryGetOrAdd",
    "level": 74,
    "line": 7849,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Scope.GetOrAdd",
    "level": 75,
    "line": 7834,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory.ApplyReuse",
    "level": 76,
    "line": 6604,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory.GetExpressionOrDefault",
    "level": 77,
    "line": 6564,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.ReflectionFactory.CreateExpressionOrDefault",
    "level": 78,
    "line": 7083,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory.GetExpressionOrDefault",
    "level": 79,
    "line": 6554,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.ReflectionFactory.CreateExpressionOrDefault",
    "level": 80,
    "line": 7083,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory.GetExpressionOrDefault",
    "level": 81,
    "line": 6554,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Factory.GetDelegateOrDefault",
    "level": 82,
    "line": 6634,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Container.ResolveAndCacheDefaultFactoryDelegate",
    "level": 83,
    "line": 211,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "DryIoc.Container.DryIoc.IResolver.Resolve",
    "level": 84,
    "line": 196,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/DryIoc/Container.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "Microsoft.Azure.WebJobs.Script.WebHost.DependencyInjection.JobHostServiceProvider.GetService",
    "level": 85,
    "line": 99,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/JobHostServiceProvider.cs"
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "Microsoft.Azure.WebJobs.Script.WebHost.DependencyInjection.JobHostServiceProvider.GetService",
    "level": 86,
    "line": 77,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/DependencyInjection/JobHostServiceProvider.cs"
  },
  {
    "assembly": "Microsoft.Extensions.DependencyInjection.Abstractions, Version=3.1.14.0, Culture=neutral, PublicKeyToken=adb9793829ddae60",
    "method": "Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService",
    "level": 87,
    "line": 0
  },
  {
    "assembly": "Microsoft.Azure.WebJobs.Script.WebHost, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null",
    "method": "Microsoft.Azure.WebJobs.Script.WebHost.WebJobsScriptHostService+<UnsynchronizedStartHostAsync>d__48.MoveNext",
    "level": 88,
    "line": 247,
    "fileName": "/src/azure-functions-host/src/WebJobs.Script.WebHost/WebJobsScriptHostService.cs"
  }
]

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
JialinXincommented, May 10, 2021

@horihiro Please try with 1.0.0-alpha.20210510.1.

Thanks for the reporting the issue! I will keep you updated when this fix is applied to nuget package.

1reaction
horihirocommented, May 10, 2021

Thank you @JialinXin! I confirmed that the input binding worked on Static Web App properly with the updated version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Web PubSub trigger and bindings for Azure Functions
An HTTP trigger working with this input binding can be used for clients to retrieve the connection information. WebPubSubContext. When using is ...
Read more >
Azure Static Web Apps Function API Not Working with ...
If I remove the [FromBody] parameter, the endpoint works. I cannot get the function to bind to that body parameter. Microsoft Azure Collective....
Read more >
Chatr - Azure Web PubSub Sample App
API support in Static Web Apps is quite limited and can't support the new bindings and triggers for Web PubSub. HOWEVER You don't...
Read more >
Cloud pubsub services compared: Azure Web PubSub vs ...
The collaborative drawing app. In this post, I compare two cloud pubsub services: Azure Web PubSub and Ably, to determine which provides the ......
Read more >
Microsoft Azure - Deploy a Static Web App
Static web apps have a very deep connection with GitHub because Azure wants to empower developers to use open-source tools.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found