Open StingNguyen opened 6 years ago
$request = $this->createNewRequest();
$request->setMethod(Request::METHOD_PUT);
$request->setPath('subscriptions/'. $params['subscriptionId']);
$body = array(
'status' => self::status_cancelled,
'token' => $this->token->getToken(),
);
$request->setBody(json_encode($body));
$this->addIdentityHeader($request);
$this->addSignatureHeader($request);
$this->request = $request;
$this->response = $this->sendRequest($request);
$body = json_decode($this->response->getBody(), true);
[ERROR] In CurlAdapter::sendRequest(): curl_exec failed with the error "Empty reply from server".
Could you help me?
https://test.bitpay.com/bills/KZQKmQDfacT3uyXnp2wESj
Method: PUT
$request = $this->createNewRequest();
Response:
[ERROR] In CurlAdapter::sendRequest(): curl_exec failed with the error "Empty reply from server".