• When I go to the website’s url: /wp-json/wp/v2/, I get this error:

    SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 216302 of the JSON data

    This url used to list all the routes and endpoints. Now it’s giving me this error.

    However, when I send a GET request to this url via the API, it shows me the list of endpoints without any issue.

    Why is this showing the JSON error when I try to view it directly?

Viewing 1 replies (of 1 total)
  • Moderator threadi

    (@threadi)

    First deactivate all plugins as a test. Does the error still occur? If not, one of the now deactivated plugins was to blame and you would have to find out which one is responsible by reactivating it individually.

Viewing 1 replies (of 1 total)

The topic ‘SyntaxError: JSON.parse on /wp-json/wp/v2/’ is closed to new replies.