gpt4 book ai didi

google-app-engine - Go AppEngine remote_api 示例不工作

转载 作者:IT王子 更新时间:2023-10-29 01:15:43 26 4
gpt4 key购买 nike

Go AppEngine 样本是最新的吗?

我遇到了让 example/remote_api/datastore_info.go 为我在本地主机上运行的测试 AppEngine 工作的问题。

我已经将 client.PostForm 更改为:

resp, err := client.PostForm("https://www.google.com/accounts/ClientLogin", v)

到:

resp, err := client.PostForm("http://localhost:35058/_ah/remote_api", v)

(35058 是在启动时为 api_server 报告的端口)。

我已经尝试了 1.9.3 和最新的 1.9.4 版本。

api 服务器报告:

ERROR    2014-05-06 20:57:56,378 api_server.py:215] Exception while handling 
Traceback (most recent call last):
File "/root/go_appengine/google/appengine/tools/devappserver2/api_server.py", line 194, in _handle_POST
request.ParseFromString(wsgi_input)
File "/root/go_appengine/google/net/proto/ProtocolBuffer.py", line 88, in ParseFromString
self.MergeFromString(s)
File "/root/go_appengine/google/net/proto/ProtocolBuffer.py", line 95, in MergeFromString
self.MergePartialFromString(s)
File "/root/go_appengine/google/net/proto/ProtocolBuffer.py", line 109, in MergePartialFromString
self.TryMerge(d)
File "/root/go_appengine/google/appengine/ext/remote_api/remote_api_pb.py", line 210, in TryMerge
d.skipData(tt)
File "/root/go_appengine/google/net/proto/ProtocolBuffer.py", line 529, in skipData
self.skipData(t)
File "/root/go_appengine/google/net/proto/ProtocolBuffer.py", line 529, in skipData
self.skipData(t)
File "/root/go_appengine/google/net/proto/ProtocolBuffer.py", line 537, in skipData
raise ProtocolBufferDecodeError, "corrupted"
ProtocolBufferDecodeError: corrupted

最佳答案

在 1.9.6 中修复了一些错误;你能试试最新的 SDK 吗?

关于google-app-engine - Go AppEngine remote_api 示例不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23507067/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com