AppEngine Remote API返回“urllib2.HTTPError:HTTP错误302:发现太多auth尝试。”

时间:2015-12-01 21:08:31

标签: google-app-engine

我正在将项目切换到OAuth 2.0,因为ClientLogin正在消失,并且在使用脚本调用远程API时遇到了这个问题。

1 个答案:

答案 0 :(得分:2)

我发布此信息是为了帮助可能从ClientLogin迁移到基于OAuth的API的其他人。就我而言,我在app.yaml中使用了带有自定义映射的远程API。我不得不删除一行,然后错误就消失了:

- url: /(?:[^/]*)/remote_api
  script: google.appengine.ext.remote_api.handler.application
  login: admin    <----- remove this line
  secure: always