我正在获取错误403(您无权执行此请求。这就是我们所知道的。)在使用域范围委派检索Google云端硬盘中的所有文件时。这很有意思,因为我没有得到前12次获取文件的错误但是,之后我继续得到它。
答案 0 :(得分:1)
如果你得到错误403,可能有各种各样的原因,如 -
403: The authenticated user has not installed the app with client id {clientId}
403: The authenticated user has not granted the app {appId} access to the file {fileId}
403: Invalid accessLevel. This method requires at least {requiredAcl} level access to act on the file with ID {fileId}
403: The app with id {appId} does not exist or is not properly configured as a Google Drive app
403: App with id {appId} cannot be used within the authenticated user's domain
403: The app with id {appId} is blacklisted as a Google Drive app
根据Google云端硬盘开发者的说法。请查看HERE了解更多详情。我希望你能找到403错误的原因。