* PLT-5643 Handle unexpected response from the server * removing the need to check if the response is json