Skip to content

Missing error handling of no response #101

@stanleynguyen

Description

@stanleynguyen

$response = $e->getResponse();
$rbody = json_decode($response->getBody()->getContents(), true);
$rcode = $response->getStatusCode();
$rheader = $response->getHeaders();
self::_handleAPIError(
array('body' => $rbody,
'code' => $rcode,
'header' => $rheader)
);

sometimes give this error Call to a member function getBody() on null on line 133 as the response is not always there

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions