Following route in Codeigniter is not working on demo server But it works on locahost. Can you see any issue in this?
$route['forge/deleteBucket/(:any)'] = 'ForgeAPI/deleteBucket/$1';
ERROR An uncaught Exception was encountered Type: GuzzleHttp\Exception\RequestException Message: cURL error 60: SSL certificate problem: self signed certificate in certificate chain (see [link]curl.haxx.se/libcurl/c/libcurl-errors.html[/link])
Why curl needs ssl? Must be something that I do not know
Best Regards
CodePudding user response:
You have not shared any specific error reporting you are getting.So I am listing some of the possibilities it might be:
- Placement of the $route['forge/deleteBucket/(:any)'] = 'ForgeAPI/deleteBucket/$1'; in the route file
- Controller may not uploaded to the server
So if you can share more details of the error I can help on that.
CodePudding user response:
Check these options in cURL
- CURLOPT_SSL_VERIFYHOST is set to 0
- CURLOPT_SSL_VERIFYPEER is set to false
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);