我目前正在维护一个由其他人开发的 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/