Soundcloud: The requested URL responded with HTTP code 0

佐手、 提交于 2019-11-29 11:24:12

It's hard to debug this exception without seeing the source code. But my guess is that your problem might be related to this issue:

https://github.com/mptre/php-soundcloud/issues/3

Which means that you should modify your accessToken call and include the extra cURL parameters.

$accessToken = $soundcloud->accessToken($code, $postData, array(
    CURLOPT_SSL_VERIFYPEER => false,
    CURLOPT_SSL_VERIFYHOST => false,
));
Malachi

A much better solution would be to follow the answer listed on the following answer to Twitter API returns NULL on XAMPP which states that you should update the CA root certifications for your PHP solution.

For more information:

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!