CubeyTheCube/scratchclient

Can't connect project

Opened this issue · 1 comments

I got the following error:

Traceback (most recent call last):
File "/home/cosmos/SC_client.py", line 8, in
connection = session.create_cloud_connection(project_id)
File "/home/cosmos/.local/lib/python3.9/site-packages/scratchclient/ScratchSession.py", line 170, in create_cloud_connection
else CloudConnection(project_id, self, cloud_host, headers)
File "/home/cosmos/.local/lib/python3.9/site-packages/scratchclient/CloudConnection.py", line 90, in init
self.connect(headers)
File "/home/cosmos/.local/lib/python3.9/site-packages/scratchclient/CloudConnection.py", line 120, in connect
response = self._ws.recv().split("\n")
File "/home/cosmos/.local/lib/python3.9/site-packages/scratchclient/Websocket.py", line 236, in recv
data, opcode = self.recv_data()
File "/home/cosmos/.local/lib/python3.9/site-packages/scratchclient/Websocket.py", line 211, in recv_data
frame, err = Frame.decode_beginning(beginning_data)
File "/home/cosmos/.local/lib/python3.9/site-packages/scratchclient/Websocket.py", line 103, in decode_beginning
header = response[0]
IndexError: index out of range

Please fix this issue.

same, i had the sae problem