ios - 来自 Google 的意外 403 错误

标签 ios google-drive-api

我目前正在维护一个由其他人开发的 iOS 应用程序。该应用程序一直运行良好,直到今天突然间我每次尝试连接到 Google Drive 时它都开始返回 403 代码。这是完整的错误:

An error occurred: Error Domain=com.google.GTLJSONRPCErrorDomain Code=403 "The operation couldn’t be completed. (Access Not Configured. Please use Google Developers Console to activate the API for your project.)" UserInfo=0x17db6180 {error=Access Not Configured. Please use Google Developers Console to activate the API for your project., GTLStructuredError=GTLErrorObject 0x17db5ef0: {message:"Access Not Configured. Please use Google Developers Console to activate the API for your project." code:403 data:[1]}, NSLocalizedFailureReason=(Access Not Configured. Please use Google Developers Console to activate the API for your project.)}

我已经在 Google 控制台中启用了 Google Drive 并包含了 google 给我的代码,但我仍然无法克服这个错误。

我正在使用 Google APIs Client Library for Objective-C连接到 GDrive。

最佳答案

您好,我在 1 个月前在我的 Mac 机器上也遇到了类似的错误,我添加了 DNS 服务器 8.8.8.8 并且工作正常。可能类似的选项也将在 iOS 设备中提供,可以为您提供帮助。

关于ios - 来自 Google 的意外 403 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25744756/

相关文章:

ios - 暂时禁用 UITableView 中的删除按钮

ios - 在 iOS 模拟器问题中运行 Apple Watch

google-api - Google Drive API不够文件权限错误

google-drive-api - 谷歌云端硬盘 SDK : To copy files from a user to another user via Domain Super Administrator access right

javascript - 如何从 NodeJS API 上传图片到谷歌驱动器

ios - CVPixelBuffer 到 NSData 并返回

ios - 方法中实例变量的更改不反射(reflect)原始实例变量的更改

ios - 更改 UIActivityController 的标题文本颜色

android - Google Play,IntelliJ 中的 Drive API 示例代码

google-drive-api - 如何使用 Google Drive SDK 访问 "Shared with me"根目录?