谷歌驱动器内部服务器错误搜索
问题描述:
在与Q参数搜索时,我得到一个错误谷歌驱动器内部服务器错误搜索
Fatal Error: Uncaught exception 'Google_ServiceException' with message 'Error calling GET https://www.googleapis.com/drive/v2/files/root/children?q=title%20%3D%20%27hello%27 : (500) Internal Error'
我认为这事做与报价,因为它的作品,如果我搜索'trashed = false'
我使用最新的api客户端c hecked out from: http://code.google.com/p/google-api-php-client/source/checkout
答
毕竟这次试过它,现在它正在工作。
答
当您没有要求正确的权限时,您会得到相同的错误消息。使用范围https://www.googleapis.com/auth/drive
,而不是(仅)https://www.googleapis.com/auth/drive.file
+0
我认为你是对的,它与oauth范围 – 2013-01-31 13:45:28
您可以尝试使用[API资源管理器](https://developers.google.com/apis-explorer/#p/drive/v2/drive.children.list? folderId = root&q = title +%253D +'hello'&_ h = 1&)并告诉我们它是否也失败了?确保通过切换OAuth 2.0按钮来授权应用程序。另外,你可以尝试使用'$ service-> files-> list(array('q'=>“title ='hello'和父母的根目录))''? – Alain 2012-08-13 15:49:34
我认为这可能是一个短暂的问题,我尝试了OAuth Playground和PHP应用程序,它在两种情况下都按预期工作。 – 2012-08-13 18:09:44
在api explorer中工作。 – 2012-08-14 11:30:15