python - Tweepy Google App Engine 计费错误

标签 python google-app-engine python-2.7 tweepy

我正在尝试使用 tweepy 和 GAE 发布更新。该代码在 localhost 中运行良好。但是,当我在 GAE 中上传它并尝试打开 URL 时,我收到以下错误:

raise TweepError('Failed to send request: %s' % e)
TweepError: Failed to send request: The Socket API will be enabled for this application once billing has been enabled in the admin console.

所以我的问题是,tweepy 是否需要启用计费才能与应用程序引擎一起使用并且 有什么解决办法吗?

我在 app.yaml 中提到的第 3 方库是 webapp2 和 ssl(tweepy 在与应用程序引擎一起使用时需要它)

最佳答案

我认为 tweepy 本身不需要计费,但 tweepy 似乎正在使用 Sockets API 来完成其工作,并且该 API 需要启用计费。

您可以启用计费并仍然保持在免费配额以下,只是提醒您一下,您只需要警惕 quotas 。请注意,您始终可以设置非常低的 daily budget .

关于python - Tweepy Google App Engine 计费错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26301117/

相关文章:

python - 在 matplotlib 的白色背景上计算 alpha 为 0.5 的基色的 RGB 等效值

python - 在python中将.txt文件转换为整数矩阵

python - python 中的 Firebase 用户身份验证

google-app-engine - 如何测试 NDB 中未设置的重复属性?

spring - GAE中使用Spring Security遇到的问题

python - 为什么生成器表达式需要大量内存?

python - Django:对象没有属性 'id'

python - 根据级别 0 索引对多索引 Pandas DataFrame 的级别 1 索引进行自定义排序

python - scikit : Wrong prediction for this case

python - 在 Google App Engine 上使用异步 urlfetch 启动后端