wordpress-api-client
wordpress-api-client copied to clipboard
Errors often fail before reporting because of fetchResponse.json()
const json = await error.json();
^
TypeError: error.json is not a function
at getErrorMessage (wordpress-api-client/dist/util.js:35:30)
Errors often won't have a JSON response to parse, so this line will fail