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.

Failed to invoke hub method '"ConnectCircuit"'.

See original GitHub issue

Message

Failed to invoke hub method ‘“ConnectCircuit”’.

Exception

System.ObjectDisposedException: Cannot access a disposed object. at Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost.SetCircuitUser(ClaimsPrincipal user) at Microsoft.AspNetCore.Components.Server.ComponentHub.ConnectCircuit(String circuitIdSecret) at lambda_method39(Closure, Object) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher1.ExecuteMethod(ObjectMethodExecutor methodExecutor, Hub hub, Object[] arguments) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher1.<Invoke>g__ExecuteInvocation|18_0(DefaultHubDispatcher1 dispatcher, ObjectMethodExecutor methodExecutor, THub hub, Object[] arguments, AsyncServiceScope scope, IHubActivator1 hubActivator, HubConnectionContext connection, HubMethodInvocationMessage hubMethodInvocationMessage, Boolean isStreamCall)

image

Issue Analytics

  • State:open
  • Created 4 months ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Bram1903commented, May 11, 2023

@Bram1903 You’re right, I did overlook a very important privacy concern. Please make the necessary changes to the code to ensure that user privacy is protected.

I mean, normally it’s fine, because if I would have a panel, I would love to be able to log IP addresses, but for the purpose of the demo website it’s far from ideal. I think we should just update that demo website to the latest version anyway, and while doing so, we just slightly modify the demo version, and remove the following two lines:

.Enrich.WithClientIp()
.Enrich.WithClientAgent()

As long as the demo version doesn’t include those two lines, we are good to go, but you have to manually wipe the database of the demo website since the current version doesn’t include a clear logs feature, or if you already updated the website. The newer version does have a clear log feature, so we can use that.

0reactions
Bram1903commented, May 12, 2023

@neozhu, what do you mean by “I have published the demo website”? It does seem to be running on the same version as a few hours ago.

When you do update it make sure to disable the two new settings I added earlier today!

In response to your findings about the error, I think you could be absolutely right. It’s rather hard to pinpoint the precise issue here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular - Failed to invoke signalR
The method name you call on the client must be the same as in your SignalR Hub (with the exception that lowercase methods...
Read more >
Unable to send message getting "Failed to invoke ...
Hi, I'm trying to send the message but it fails with error. ... Your hub method takes two parameters but you are sending...
Read more >
Angular – Failed to invoke signalR
Failed to invoke hub method 'Send'. System.IO.InvalidDataException: Invocation provides 1 argument(s) but target expects 0. at Microsoft.AspNetCore.SignalR.
Read more >
ASP.NET Core Blazor SignalR guidance
Learn how to configure and manage Blazor SignalR connections.
Read more >
Failed to invoke 'Methodname' due to an error on the server ...
For me the error was caused by a method signature on the hub expecting an integer but javascript providing it (a number) as...
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