Skip to content

REST API Response couldn't be parsed #26467

Backlog
Backlog

Description

@joshbetz

Description

When I try to go to the Posts screen, I get an error message that the REST API response couldn't be parsed.

Screenshot 2026-11-28 at 13 09 47

Since PHP and JavaScript / JSON are not strongly typed languages AND the fact that plugin authors can mess up the types, the REST API parser has to be more forgiving about handling what it considers "wrong" types.

Step-by-step reproduction instructions

  1. Go to Posts
  2. Response couldn't be parsed: invalid type: boolean false, expected a string at line 1.

I assume this is easy to reproduce in a contrived way by changing the type of some post meta to a boolean.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Activity

  1. added theissue type on Nov 28, 2026
  2. dangermattic commented on Nov 28, 2026

    @dangermattic
    Collaborator

    Thanks for reporting! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions