Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http and https transport "invalid" #93

Open
XPav opened this issue Aug 10, 2022 · 0 comments
Open

http and https transport "invalid" #93

XPav opened this issue Aug 10, 2022 · 0 comments

Comments

@XPav
Copy link

XPav commented Aug 10, 2022

hub_connection = HubConnectionBuilder()\
    .with_url('http://localhost:8080/signalr', options={"verify_ssl": False, "skip_negotiation": True } )\
    .configure_logging(logging.DEBUG).build()

results in

2022-08-10 10:46:35,189 - SignalRCoreClient - DEBUG - Connection started
2022-08-10 10:46:35,190 - SignalRCoreClient - DEBUG - start url:http://localhost:8080/signalr
2022-08-10 10:46:35,194 - SignalRCoreClient - DEBUG - -- web socket error --
2022-08-10 10:46:35,197 - SignalRCoreClient - ERROR - <signalrcore.transport.websockets.websocket_transport.WebsocketTransport object at 0x000002369344DCD0> scheme http is invalid
2022-08-10 10:46:35,198 - SignalRCoreClient - ERROR - scheme http is invalid <class 'ValueError'>
2022-08-10 10:46:35,198 - SignalRCoreClient - INFO - on_disconnect not defined
2022-08-10 10:46:35,198 - SignalRCoreClient - DEBUG - -- web socket close --
2022-08-10 10:46:35,198 - SignalRCoreClient - DEBUG - None
2022-08-10 10:46:35,198 - SignalRCoreClient - DEBUG - None
2022-08-10 10:46:35,199 - SignalRCoreClient - INFO - on_disconnect not defined

I believe these should work. "ws" transport scheme works, but that's not my service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant