Unexpected token '<', "<meta http"... is not valid JSON

Abierto
#1,539 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
30/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
javascript, php, wordpress
Área
backend, frontend

Línea de trabajo

The "Check it!" button sends a request whose response is parsed as JSON, so the fix starts on the JavaScript side where that click handler and its fetch or AJAX call live, then the PHP endpoint it calls. Reproduce it first: the response body starts with a <meta tag, which suggests an HTML page such as a login, error or notice page is returned instead of the JSON. Done means the endpoint always returns valid JSON, or the client handles a non-JSON response without the parse error, and the intermittent case is explained.

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

Descripción

When "Check it!" is clicked, this error message is displayed: Unexpected token '<', "<meta http"... is not valid JSON. The message does not appear every time the button is clicked.

Lenguaje dominante
PHP
Estrellas
365
Forks
135
Merge medio
1 d 8 h
PR fusionados (30 d)
20

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 WordPress/plugin-check

Todos los issues de WordPress/plugin-check

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.