Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Bug: CollectionCreate form does not display error message when collection creation fails

Abierto
#3,948 3 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 3 días

@pranjal270 ya está trabajando en esto.

Desde el 10/3/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

Bug
p5.js version

No response

What is your operating system?

Windows

Web browser and version

chrome://145.0.7632.117

Actual Behavior

In the collection creation form, the error handling logic for creating a new sketch collection is incomplete. The local state creationError is defined but never updated when the createCollection action fails.

When collection creation fails (e.g., due to a network error or backend validation failure), no error message is shown to the user because creationError remains undefined. The createCollection action dispatches an ERROR action on failure, but the component neither listens to this state nor catches the error.

Expected Behavior

The component should display an appropriate error message when collection creation fails.

This can be achieved either by:

  • reading the error state from Redux, or

  • modifying the action to return a rejected Promise so the component can catch it and set its local creationError state to true.

Steps to reproduce

###Steps:

  1. Navigate to the Collection Creation page.
  2. Intercept the network request to the /collections endpoint and force it to fail (for example, return a 500 error).
  3. Attempt to create a collection.
  4. Observe that no error message is displayed despite the failure.
Snippet:
// TODO: error is never set!
// eslint-disable-next-line no-unused-vars
const [creationError, setCreationError] = useState();
Lenguaje dominante
JavaScript
Estrellas
1.7k
Forks
1.7k
Merge medio
2 d 7 h
PR fusionados (30 d)
8

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de processing/p5.js-web-editor

Todos los issues de processing/p5.js-web-editor

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.