plotly / plotly/dash

Truncate `InvalidCallbackReturnValue` size

Open
#2,658 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
Python
Stars
24.4k
Forks
2.3k
Avg merge
2d 7h
Merged PRs (30d)
13

Description

Would you consider truncating/ellipsisizing the {bad_val} output of

https://github.com/plotly/dash/blob/c729ef82e179623592d033929126f284837fd178/dash/_validate.py#L238C26-L253

?

Sometimes the output can be humongous, which affects browser rendering 😕

Contributor guide

Open the contributing guide

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 in dash/_validate.py around lines 238-253 and inspect how InvalidCallbackReturnValue formats bad_val. Define the truncation and ellipsis behavior for oversized values while keeping normal values readable; the issue is complete when humongous output no longer harms browser rendering.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.