FrozenStormInteractive / Unreal-SignalR

SignalR client for Unreal Engine
MIT License
44 stars 20 forks source link

HTTPS/SSL issues #10

Closed intelligentgoldfish-com closed 1 year ago

intelligentgoldfish-com commented 2 years ago

Hi! I've been pulling my hair over this for a while and thought I'd ask here. Cloned this repository into my project Plugins folder. Everything seems to work OK, but there's an error when negotiating with the signalr hub.

The hub is locally hosted (VS2022 Core WebApp), and works when using a browser with the same url. Both http and https. UE log gives me this error about SSL certificate:

image

Any ideas on how to solve this?

intelligide commented 2 years ago

I don't think libcurl uses the Windows certificate store. Try disabling ASP.NET Core HTTPS redirection in your development environment.

intelligentgoldfish-com commented 2 years ago

Yeah, I already tried that...without success!

intelligentgoldfish-com commented 2 years ago

Unchecking this checkbox makes the error disappear, but there's still no connection established. OnNegotiateResponse() is never executed...

image
julegault commented 2 years ago

i'm using the default chat hub example from microsoft, and the examples from this repo, and i'm getting the exact same error. Was the solution found ?

I can also confirm the delegate is never called.

intelligide commented 2 years ago

I added a new troubleshoot section in the readme. Concretely, the problem comes from the fact that the functions are asynchronous and that the shared pointer removes the connection object and thus the connection with the server before the negotiation ended. You just need to persist a reference to the connection object somewhere in your code to ensure that the object is not destroyed when the pointer is destroyed.