internal relayout method called with undefined
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 18.3k
- Fork
- 2k
- Merge medio
- 2g 12h
- PR unite (30g)
- 28
Descrizione
We have observed a relayout failure immediately after this warning:
WARN: Relayout fail. undefined undefined
Non-Error promise rejection captured with value: undefined
coming from: https://github.com/plotly/plotly.js/blob/24b6f75e2d3b58cb1cd9cdd850894720404373d3/src/plot_api/plot_api.js#L1774
I'm not sure which exact circumstances triggered this failure, but the relayout internal function probably should not reject if astr is undefined, as this simply means there is nothing to update (recording the warning seems fine as it helps to diagnose call sites which are not correctly omitting the relayout, but it should not cause the function to fail).
I suggest that this branch should return successfully after logging a warning if astr is undefined / null.
It would also be useful for diagnosing the root cause further if the warning could include a stack trace.
Plotly.js version: 2.26.2
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia in src/plot_api/plot_api.js intorno alla riga 1774 e traccia il percorso con cui un valore undefined o null di astr raggiunge la funzione interna relayout. Verifica il comportamento dell’avviso e conferma che questo percorso venga completato correttamente invece di essere rifiutato; considera come una stack trace aiuterebbe la diagnosi e controlla il comportamento pertinente di relayout prima di definire il completamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- data-visualization
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100