[bug]: Blank page and endless /meta/ requests after signing in from a work item e-mail link

Abierto
#10,289 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@ysalitrynskyi ya está trabajando en esto.

Desde el 15/11/2026.

  • #10290 de @ysalitrynskyi — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
32/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
react, typescript
Área
frontend

Línea de trabajo

Start in apps/web/lib/wrappers/authentication-wrapper.tsx: router.push() runs in the render body of the NON_AUTHENTICATED branch, so each re-render restarts navigation. Follow the old work item URL's clientLoader (getIssueMetaFromURL, then the redirect to /<workspace>/browse/<KEY>-<N>/) to see why interrupted loaders keep firing /meta/. Note pull request #10290 is already open against this, so read it before starting. Done means one /meta/ request and a completed redirect.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Is there an existing issue for this?
  • I have searched the existing issues
Current behavior

Signing in from a work item link of the form /<workspace>/projects/<projectId>/issues/<issueId> (the link format used in notification e-mails) leaves a blank page, and the browser sends GET /api/workspaces/<workspace>/projects/<projectId>/issues/<issueId>/meta/ over and over.

On a self-hosted instance, one browser tab sent the same /meta/ request about 35 times a second for more than half an hour. Every request opened a database connection, so the database ran out of connections and other requests began to fail. Reproduced locally with a production build of preview against a stub API: about 1,200 /meta/ requests in 9 seconds, until the browser refused new ones (net::ERR_INSUFFICIENT_RESOURCES), and the page never left /?next_path=….

Expected: one /meta/ request, then the redirect to /<workspace>/browse/<KEY>-<N>/.

Cause. AuthenticationWrapper (apps/web/lib/wrappers/authentication-wrapper.tsx) calls router.push() in its render body, for example in the NON_AUTHENTICATED branch used by the sign-in page:

if (currentUserProfile?.id && isUserOnboard) {
  const currentRedirectRoute = getWorkspaceRedirectionUrl();
  router.push(currentRedirectRoute);
  return <></>;
}

React Router re-renders the route tree on every navigation state change, so every render starts another navigation, which interrupts the one before it. When next_path is a route whose clientLoader waits on the network, as the old work item URL does (it calls getIssueMetaFromURL and then redirects to /browse/…), no navigation ever finishes. The interrupted loaders' requests are not aborted, so each one still reaches the API.

Steps to reproduce
  1. Sign out (or let the session expire).
  2. Open a work item link in the old form, e.g. the one in a notification e-mail: /<workspace>/projects/<projectId>/issues/<issueId>.
  3. You land on /?next_path=/<workspace>/projects/<projectId>/issues/<issueId>. Sign in.
  4. The page stays blank. In the network tab, GET …/issues/<issueId>/meta/ repeats continuously.

Visiting /?next_path=/<workspace>/projects/<projectId>/issues/<issueId> while already signed in reproduces it too. It is easier to see when the API is slow (tens to hundreds of milliseconds per request), e.g. from a distant region.

Environment

Production

Browser

Mozilla Firefox (also reproduced in Chromium)

Edition

Community

Version

v1.3.1. The same code is in v1.4.3, v1.5.0-rc2 and preview.

Lenguaje dominante
TypeScript
Estrellas
63k
Forks
6.5k
Merge medio
2 d 16 h
PR fusionados (30 d)
70

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 makeplane/plane

Todos los issues de makeplane/plane

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.