Skip to content

Conversation

@MetRonnie
Copy link
Member

@MetRonnie MetRonnie commented Nov 19, 2025

Addresses a bug reported by a user where they said they saw an red error snackbar in the UI that said

ValueError: Separator is not found, and chunk exceed the limit

I have not managed to reproduce in exactly this way, but if a line is longer than 64 kiB, the log view in the UI will stop at that line, but there is no hint that anything is wrong. Later in the uiserver log I saw the error message and traceback once I closed the UI.

This PR increases the line limit to 200 kiB as a precaution, and properly displays a "line too long" error in the log view should a line exceed this.

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • No dependency changes
  • Tests are included (or explain why tests are not needed).
  • Changelog entry included if this is a change that can affect users
  • Docs not needed
  • If this is a bug fix, PR should be raised against the relevant ?.?.x branch.

@MetRonnie MetRonnie added this to the 1.8.x milestone Nov 19, 2025
@MetRonnie MetRonnie self-assigned this Nov 19, 2025
@MetRonnie MetRonnie changed the base branch from master to 1.8.x November 19, 2025 18:04
async for line in stream:
await queue.put(line.decode())
except Exception as exc:
if re.match(r'Separator .+ chunk .+ limit', str(exc)):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From inspecting the asyncio code, there are 2 possible error messages that fit this pattern. Doesn't seem to be a better way to detect this unfortunately, as the error subclass is swallowed into a ValueError for some reason

@oliver-sanders oliver-sanders modified the milestones: 1.8.1, 1.8.x Nov 27, 2025
@MetRonnie MetRonnie marked this pull request as ready for review November 28, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants