overleaf-sync icon indicating copy to clipboard operation
overleaf-sync copied to clipboard

Stopped working last week

Open CeciliaCoelho opened this issue 1 year ago • 5 comments

Hi everyone,

Last week sync stopped working. Tried login again and everything goes fine but then when pulling from remote it gives an error. Tried with several projects and the same happens:

Persisted Overleaf cookie already exist. Do you want to override it? [y/N]: y
Login successful. Cookie persisted as `.olauth`. You may now sync your project.
✅  Login
Project queried successfully.
✅  Querying project
💥  Querying project details
Error: Project details could not be queried.

CeciliaCoelho avatar Dec 05 '23 09:12 CeciliaCoelho

Same issue on my side:

Project queried successfully.
✅  Querying project
⠸ Querying project detailsTraceback (most recent call last):
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/socketIO_client/transports.py", line 175, in recv
    yield self._connection.recv()
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_core.py", line 362, in recv
    opcode, data = self.recv_data()
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_core.py", line 385, in recv_data
    opcode, frame = self.recv_data_frame(control_frame)
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_core.py", line 406, in recv_data_frame
    frame = self.recv_frame()
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_core.py", line 445, in recv_frame
    return self.frame_buffer.recv_frame()
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_abnf.py", line 338, in recv_frame
    self.recv_header()
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_abnf.py", line 294, in recv_header
    header = self.recv_strict(2)
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_abnf.py", line 373, in recv_strict
    bytes_ = self.recv(min(16384, shortage))
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_core.py", line 529, in _recv
    return recv(self.sock, bufsize)
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_socket.py", line 122, in recv
    raise WebSocketConnectionClosedException(
websocket._exceptions.WebSocketConnectionClosedException: Connection to remote host was lost.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/olsync/olsync.py", line 348, in execute_action
    success = action()
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/olsync/olsync.py", line 73, in <lambda>
    lambda: overleaf_client.get_project_infos(project["id"]),
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/olsync/olclient.py", line 186, in get_project_infos
    socket_io.wait_for_callbacks()
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/socketIO_client/__init__.py", line 292, in wait_for_callbacks
    self.wait(seconds, for_callbacks=True)
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/socketIO_client/__init__.py", line 254, in wait
    self._process_events(timeout)
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/socketIO_client/__init__.py", line 271, in _process_events
    for packet in self._transport.recv_packet(timeout):
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/socketIO_client/transports.py", line 99, in recv_packet
    for packet_text in self.recv(timeout=timeout):
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/socketIO_client/transports.py", line 178, in recv
    except websocket.SSLError as e:
AttributeError: module 'websocket' has no attribute 'SSLError'

OLaurent avatar Dec 06 '23 17:12 OLaurent

Same issue on my side:

Project queried successfully.
✅  Querying project
⠸ Querying project detailsTraceback (most recent call last):
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/socketIO_client/transports.py", line 175, in recv
    yield self._connection.recv()
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_core.py", line 362, in recv
    opcode, data = self.recv_data()
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_core.py", line 385, in recv_data
    opcode, frame = self.recv_data_frame(control_frame)
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_core.py", line 406, in recv_data_frame
    frame = self.recv_frame()
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_core.py", line 445, in recv_frame
    return self.frame_buffer.recv_frame()
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_abnf.py", line 338, in recv_frame
    self.recv_header()
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_abnf.py", line 294, in recv_header
    header = self.recv_strict(2)
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_abnf.py", line 373, in recv_strict
    bytes_ = self.recv(min(16384, shortage))
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_core.py", line 529, in _recv
    return recv(self.sock, bufsize)
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/websocket/_socket.py", line 122, in recv
    raise WebSocketConnectionClosedException(
websocket._exceptions.WebSocketConnectionClosedException: Connection to remote host was lost.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/olsync/olsync.py", line 348, in execute_action
    success = action()
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/olsync/olsync.py", line 73, in <lambda>
    lambda: overleaf_client.get_project_infos(project["id"]),
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/olsync/olclient.py", line 186, in get_project_infos
    socket_io.wait_for_callbacks()
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/socketIO_client/__init__.py", line 292, in wait_for_callbacks
    self.wait(seconds, for_callbacks=True)
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/socketIO_client/__init__.py", line 254, in wait
    self._process_events(timeout)
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/socketIO_client/__init__.py", line 271, in _process_events
    for packet in self._transport.recv_packet(timeout):
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/socketIO_client/transports.py", line 99, in recv_packet
    for packet_text in self.recv(timeout=timeout):
  File "/Users/olivierlaurent/Library/Python/3.9/lib/python/site-packages/socketIO_client/transports.py", line 178, in recv
    except websocket.SSLError as e:
AttributeError: module 'websocket' has no attribute 'SSLError'

Same problem for me

lxhoanghsgs avatar Dec 12 '23 15:12 lxhoanghsgs

same me too!

Usgupta avatar Dec 29 '23 15:12 Usgupta

Same issue for me!

Particle-cosmology avatar Jan 25 '24 08:01 Particle-cosmology

Same issue

david-2031 avatar Jan 26 '24 09:01 david-2031

Did anyone fix this problem? Have the same issue

Vasissualiyp avatar Mar 06 '24 01:03 Vasissualiyp

I solved this problem by installing this fork https://github.com/zzjjzzgggg/overleaf-sync. Credits to @zzjjzzgggg.

ericsua avatar Mar 14 '24 20:03 ericsua

I solved this problem by installing this fork https://github.com/zzjjzzgggg/overleaf-sync. Credits to @zzjjzzgggg.

Get this error when installing:

FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-iai251qp/olsync/__init__.py'

CeciliaCoelho avatar Mar 17 '24 11:03 CeciliaCoelho

I solved this problem by installing this fork https://github.com/zzjjzzgggg/overleaf-sync. Credits to @zzjjzzgggg.

Get this error when installing:

FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-iai251qp/olsync/__init__.py'

It is because the file 'init.py' is stored in the wrong directory. To solve this, you need to open the repo, you will see that there is a folder named "olsync" inside the folder "olsync". Move the files inside the smaller "olsync" folder to the bigger one, and you're done.

Best wishes!

lxhoanghsgs avatar Mar 17 '24 11:03 lxhoanghsgs