2
import requests
payload = {"id":1,"jsonrpc":"2.0","method":"getCortexInfo"}
r = requests.get( 'wss://localhost:6868' , params = payload)
print(r.text)

error message :raise InvalidSchema("No connection adapters were found for {!r}".format(url))

requests.exceptions.InvalidSchema: No connection adapters were found for 'wss://localhost:6868'

Can anyone provide a alternative solution

Ashwath
  • 65
  • 6
  • `requests` is not suitable to connect to a websocket. – Klaus D. Sep 24 '21 at 12:20
  • The `requests` module , does not support `websockets` see [this](https://stackoverflow.com/questions/46852066/how-to-create-python-secure-websocket-client-request) answer instead. – HTF Sep 24 '21 at 12:20

0 Answers0