• In my WordPress setup, the frontend cannot properly pass the info it receives – for example, the media library doesn’t show any photos, although, from the developer tab, I looked into the requests, and found a request, which responded with HTTP 200 – with a success: true in the JSON (image), so looks like a valid response. This happens with a lot of other plugins as well, but it just doesn’t parse properly. Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    Check your browser console for any client side errors which could impact proper handling of an API response. Sometimes browser extensions can interfere with API responses as well. Check functionality in a browser’s safe mode.

    If you’re having trouble with a specific plugin’s handling of API responses I recommend seeking help through the dedicated support channel for that plugin so its devs who know their own code best can better help you.

    Thread Starter filiptronicek

    (@filiptronicek)

    It is happening for all our users of the WP site. It looks, like this is happening with every component using the API. Including WordPress itself @bcworkz

    Moderator bcworkz

    (@bcworkz)

    What does site health (under tools) have to say about the REST API? If it says the API is available, your theme or a plugin is apparently interfering with proper interpretation of responses. Try switching to twentytwenty theme and deactivating all plugins. The block editor uses the API (to show featured image thumb among other things), it should work normally now. To narrow down the cause, restore your theme and plugins one at a time, testing after each until problems occur again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress API responce parsing doesn’t work properly’ is closed to new replies.