Closed juliushaertl closed 2 weeks ago
I just noticed I pushed my potential fix already in https://github.com/nextcloud-gmbh/whiteboard/pull/29/files#diff-f1d3123a78f08c3e1345d35dcc52d627c991bb4ef34f28f10be60f4226442e95R40-R44
One thing I noticed was that we seem to only send back elements to the frontend in https://github.com/nextcloud-gmbh/whiteboard/blob/84c7ec62be9ed39ac668bf599390bb23cc9f972a/websocket_server/index.js#L43 so we might drop anything else in the json schema: https://docs.excalidraw.com/docs/codebase/json-schema Something we should probably address as well
A new file has empty content right now so fetching the file content fails as the empty string cannot be json_decoded.
We should also make the websocket_server catch this error to not crash