You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running a jupyter-server, in which a document is created and modified through a room. If the document is deleted out of band, the watcher keeps throwing errors. Here is an example of the error encountered:
[E 2024-12-13 14:28:16.812 YDocExtension] Error watching file: test-c3d69e549bba475b876203b758f9c616.ipynb
HTTPError()
Traceback (most recent call last):
File "/home/fcollonval/miniconda3/envs/kernel-client/lib/python3.12/site-packages/jupyter_server_ydoc/loaders.py", line 207, in _watch_file
await self.maybe_notify()
File "/home/fcollonval/miniconda3/envs/kernel-client/lib/python3.12/site-packages/jupyter_server_ydoc/loaders.py", line 226, in maybe_notify
model = await ensure_async(self._contents_manager.get(path, content=False))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/fcollonval/miniconda3/envs/kernel-client/lib/python3.12/site-packages/jupyter_core/utils/__init__.py", line 198, in ensure_async
result = await obj
^^^^^^^^^
File "/home/fcollonval/miniconda3/envs/kernel-client/lib/python3.12/site-packages/jupyter_server/services/contents/filemanager.py", line 910, in get
raise web.HTTPError(404, "No such file or directory: %s" % path)
tornado.web.HTTPError: HTTP 404: Not Found (No such file or directory: test-c3d69e549bba475b876203b758f9c616.ipynb)
Reproduce
Start a jupyter-server
Open and edit a document
Delete the document out of band
Expected behavior
This is a tricky question, I guess we should stop watching the file and stop the room if nobody is there. If the room is still live, I guess the file will eventually be recreated.
I didn't yet analyze if the room was still there or not.
Description
While running a jupyter-server, in which a document is created and modified through a room. If the document is deleted out of band, the watcher keeps throwing errors. Here is an example of the error encountered:
Reproduce
Expected behavior
This is a tricky question, I guess we should stop watching the file and stop the room if nobody is there. If the room is still live, I guess the file will eventually be recreated.
Context
The text was updated successfully, but these errors were encountered: