Azure / azure-functions-signalrservice-extension

Azure Functions bindings for SignalR Service. Project moved to https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService .
MIT License
97 stars 46 forks source link

HubException includes a stack trace #292

Closed msirkovsky-moodys closed 11 months ago

msirkovsky-moodys commented 11 months ago

Hi all,

according to this documentation, the HubException should hide a stack trace from the client. But if I use the following code, my client can still see the whole stack trace. I'm using Azure Service SignalR - serveless mode + Azure functions v4(isolated worker process). Is it possible to hide the stack trace for this combination? Thanks.

[Function(nameof("Subscribe"))]
[SignalROutput(HubName = "Hub", ConnectionStringSetting = "AzureSignalRConnectionString")]
public SignalRGroupAction Subscribe(
  [SignalRTrigger("Hub", "messages", "Subscribe")]
  SignalRInvocationContext invocationContext
  )
{
    throw new HubException("This error will be sent to the client!");
}
msirkovsky-moodys commented 11 months ago

Sorry, bad repo