asciisd / zoho

Zoho package for Laravel
36 stars 37 forks source link

`$this->response` is `false` in CommonAPIResponse class #35

Closed bfiessinger closed 2 years ago

bfiessinger commented 2 years ago

Whenever I try to call the Zoho API via this package I get an Undefined array key 1 error from CommonAPIResponse.php (zohocrm/php-sdk-archive) due to a false value in the response.

Reading $this in the setResponseJSON method shows me many undefined vars

zcrmsdk\crm\api\response\BulkAPIResponse {[#2233 ▼]()
  -bulkData: null
  -status: null
  -info: null
  -bulkEntitiesResponse: null
  -httpStatusCode: 0
  -responseJSON: null
  -responseHeaders: null
  -code: null
  -message: null
  -details: null
  -response: false
  -apiName: null
}

I am currently running on localhost. Tried to setup on an environment with pretty URL and via php artisan serve. Both times authentication worked but the responses are the same no matter if I want to read or manipulate data.

sarojasp commented 2 years ago

same problem

sarojasp commented 2 years ago

Hi, i resolved this problem changed the Curl certificate. You can see the solution In https://www.zoho.com/crm/developer/docs/php-sdk/errors-solutions.html . You must search in the php.ini the location of the certificate with the words 'curl.cainfo'.