Open mkhrystunov opened 2 years ago
yes many lib files need the following change to get the errors back in my testing. This was the only way to get the issues to be returned in the exception. Sadly so many files need this change. For anyone testing this is how I worked around this issue.
throw new PlivoResponseException( $responseContents['error'], 0, null, $response->getContent(), $response->getStatusCode()
);
changed to
throw new PlivoResponseException( json_encode($responseContents['error']), 0, null, $response->getContent(), $response->getStatusCode()
);
Library error format is inconsistent with PHP SDK