New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SOLVED] Dropbox v2 // listfolder() returns Curl-Error 51 #100
Comments
Answer from Greg from Dropbox Support:
|
SOLVED The issue was in the DropboxClient.php of the SDK. the content_path was not content.dropboxapi.com . https://github.com/kunalvarma05/dropbox-php-sdk/blob/master/src/Dropbox/DropboxClient.php |
Dropbox Api Version: 2
SDK Version: latest (composer download / 2017-12-01)
Call:
$dropbox->listFolder("");
Warning: cURL error 51: SSL: no alternative certificate subject name matches target host name 'api.dropboxapi.com' (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
Getting this message right now, don't know if something on the dropbox side changed, my api call worked hours before.
When I change api.dropboxapi.com to api.dropbox.com, the listFolder() function works but the download() returns:
Incorrect host for API function files/download. You must issue the request to content.dropboxapi.com
The text was updated successfully, but these errors were encountered: