posit-dev / posit-dev/py-shiny

Errors which crash the session don't show in the client

Open
#243 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.8k
Forks
135
Avg merge
2d 18h
Merged PRs (30d)
21

Description

For example, if an input handler has an error, or if there's an error in executing the server function, then there's no indication in the client that something has happened.

This can be tested by putting this at the top of a server function:

raise Exception("This is an error")

In shinylive, it also doesn't display anything in the Python console; the error goes to the JS console instead.

These errors should at least cause the client page to gray-out.

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 reproducing the issue with the shown exception at the top of a server function, then compare errors from server functions and input handlers. Check where the error appears in the client, Python console, and JS console, including shinylive. Done means the client visibly grays out when these session-crashing errors occur.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
full-stack
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.