【问题标题】:Google App Engine: Upload returns 404Google App Engine:上传返回 404
【发布时间】:2014-04-26 14:40:29
【问题描述】:

我正在尝试通过 Google App Engine 批量加载上传数据,但出现此错误

08:51 PM Uploading data records.
[INFO    ] Logging to bulkloader-log-20140425.205147
[INFO    ] Throttling transfers:
[INFO    ] Bandwidth: 250000 bytes/second
[INFO    ] HTTP connections: 8/second
[INFO    ] Entities inserted/fetched/modified: 20/second
[INFO    ] Batch Size: 10
Error 404: --- begin server output ---
404 Not Found

The resource could not be found.


--- end server output ---
FINISHED

【问题讨论】:

  • 你在 app.yaml 的内置部分中启用了远程 api 吗?
  • 是的,我像内置插件一样做到了:-remote_api: on
  • 好吧,这给您留下了两种可能性,要么是您使用了不正确的 appid,要么是明确指定了不正确的 URL,或者您弄错了。您是否检查过是否可以使用 remote_api_shell,两者都取决于 /_ah/remote_api 是否可以访问。获得 404 的唯一方法是上述情况之一。你的命令行是什么
  • upload_data --config_file= --filename= --url=http://.appspot.com/remote_api
  • 有你的问题然后 URL 不正确。默认情况下应该是--url=http://<correctAppID>.appspot.com/_ah/remote_api

标签: python google-app-engine


【解决方案1】:

有您的问题,然后 URL 不正确。默认情况下应该是

 --url=http://<correctAppID>.appspot.com/_ah/remote_api

【讨论】:

    猜你喜欢
    • 2013-09-09
    • 2017-06-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-22
    • 1970-01-01
    • 2014-05-12
    • 2011-03-09
    相关资源
    最近更新 更多