[I 2025-11-16 18:08:31.730 ServerApp] Saving file at /my_projects/synapsphere/frontend/src-tauri/src/rhai_watcher.rs
[D 2025-11-16 18:08:31.730 ServerApp] Saving /home/tomoyan/my_projects/synapsphere/frontend/src-tauri/src/rhai_watcher.rs
[W 2025-11-16 18:08:31.731 ServerApp] 400 PUT /api/contents/my_projects/synapsphere/frontend/src-tauri/src/rhai_watcher.rs?1763284111726 (127.0.0.1): Encoding error saving /home/tomoyan/my_projects/synapsphere/frontend/src-tauri/src/rhai_watcher.rs: 'utf-8' codec can't encode character '\udd73' in position 465: surrogates not allowed
[W 2025-11-16 18:08:31.731 ServerApp] wrote error: "Encoding error saving /home/tomoyan/my_projects/synapsphere/frontend/src-tauri/src/rhai_watcher.rs: 'utf-8' codec can't encode character '\\udd73' in position 465: surrogates not allowed"
Traceback (most recent call last):
File "/home/tomoyan/miniforge3/envs/jupyterlab/lib/python3.14/site-packages/jupyter_server/services/contents/fileio.py", line 604, in _save_file
bcontent = content.encode("utf8")
UnicodeEncodeError: 'utf-8' codec can't encode character '\udd73' in position 465: surrogates not allowed
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tomoyan/miniforge3/envs/jupyterlab/lib/python3.14/site-packages/tornado/web.py", line 1848, in _execute
result = await result
^^^^^^^^^^^^
File "/home/tomoyan/miniforge3/envs/jupyterlab/lib/python3.14/site-packages/jupyter_server/auth/decorator.py", line 73, in inner
return await out
^^^^^^^^^
File "/home/tomoyan/miniforge3/envs/jupyterlab/lib/python3.14/site-packages/jupyter_server/services/contents/handlers.py", line 320, in put
await self._save(model, path)
File "/home/tomoyan/miniforge3/envs/jupyterlab/lib/python3.14/site-packages/jupyter_server/services/contents/handlers.py", line 245, in _save
model = await ensure_async(self.contents_manager.save(model, path))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tomoyan/miniforge3/envs/jupyterlab/lib/python3.14/site-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async
result = await obj
^^^^^^^^^
File "/home/tomoyan/miniforge3/envs/jupyterlab/lib/python3.14/site-packages/jupyter_server/services/contents/largefilemanager.py", line 133, in save
return await super().save(model, path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tomoyan/miniforge3/envs/jupyterlab/lib/python3.14/site-packages/jupyter_server/services/contents/filemanager.py", line 971, in save
await self._save_file(os_path, model["content"], model.get("format"))
File "/home/tomoyan/miniforge3/envs/jupyterlab/lib/python3.14/site-packages/jupyter_server/services/contents/fileio.py", line 610, in _save_file
raise HTTPError(400, f"Encoding error saving {os_path}: {e}") from e
tornado.web.HTTPError: HTTP 400: Bad Request (Encoding error saving /home/tomoyan/my_projects/synapsphere/frontend/src-tauri/src/rhai_watcher.rs: 'utf-8' codec can't encode character '\udd73' in position 465: surrogates not allowed)