【发布时间】:2014-06-06 04:15:58
【问题描述】:
我正在尝试将 XML 文件上传到谷歌数据存储。我遵循的步骤
-使用示例留言簿应用程序并使用正确的 app-id 将其上传到 google appengine -我的 app.yml 看起来像这样:
application: app-id
version: 1
runtime: python27
api_version: 1
threadsafe: yes
handlers:
- url: .*
script: guestbook.app
libraries:
- name: webapp2
version: "2.5.2"
builtins:
- remote_api: on
-我想将整个 XML 文件上传到数据存储区,所以我输入:
appcfg.py upload_data --url=http://app-id.appspot.com/_ah/remote_api --kind=xml --filename=pathtoxml/xml
- 产生的输出如下:
[INFO ] Logging to bulkloader.. [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 --- <html><head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title>404 NOT_FOUND</title> </head> <body text=#000000 bgcolor=#ffffff> <h1>Error: NOT_FOUND</h1> </body></html> --- end server output ---
-如果我只输入 myappid.appspot.com/_ah/remote_api,它会显示找不到页面。
我做错了什么?
【问题讨论】:
标签: python google-app-engine google-cloud-storage google-cloud-datastore