SolidOS / SolidOS/solid-ui

Chat: cannot wait for changes in a file if file for today hasn't been created yet

Open
#228 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
153
Forks
46
Avg merge
1d 8h
Merged PRs (30d)
7

Description

The long chat system only creates a file for chat in a given day if someone actually sends a message. After it is created, each user of the chat subscribes to web socket events when the file changes.
Anyone opening the chat before the file for today has been created gets an error because it hasn't got a 200 response from the file and so can't look at the headers in that.

But in fact the 404 response does have a Updates-Via: wss://example.com header.

So it needs the rdflib function which looks at the headers at it to also look at 404 responses.
And it needs the server to allow one to watch for a non existent file being created.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the long chat file handling and the rdflib function that reads the Updates-Via header. Trace how 404 responses and websocket subscriptions are handled, then verify the server path for watching a file that does not yet exist. Done means a chat opened before today’s file exists can wait for its creation without an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.