Azure / azure-signalr

Azure SignalR Service SDK for .NET
https://aka.ms/signalr-service
MIT License
427 stars 101 forks source link

[Emulator] Getting forbidden error in emulator when it gets triggered #1733

Closed Power-Maverick closed 1 year ago

Power-Maverick commented 2 years ago

Describe the bug

I am running a local emulator for SignalR and whenever the emulator is triggered it throws following error:

fail: Microsoft.Azure.SignalR.Emulator.HubEmulator.HttpServerlessMessageHandler[0]
      The response for {hub}=signalrhub,{event}=connected,{category}=connections is unexpected: Forbidden.

To Reproduce

Exceptions (if any)

fail: Microsoft.Azure.SignalR.Emulator.HubEmulator.HttpServerlessMessageHandler[0]
      The response for {hub}=signalrhub,{event}=connected,{category}=connections is unexpected: Forbidden.

I am using the default Upstream settings as:

{
  "UpstreamSettings": {
    "Templates": [
      {
        "UrlTemplate": "http://localhost:7071/runtime/webhooks/signalr",
        "EventPattern": "*",
        "HubPattern": "*",
        "CategoryPattern": "*"
      }
    ]
  }
}
vicancy commented 2 years ago

Forbidden means your local azure function returns 403 Forbidden, do you see any trace in your azure function side?

vicancy commented 1 year ago

Please feel free to reopen the issue if there are updates