我搞不懂到底是怎么回事。我正在使用示例python代码发现的here对一个解析类进行基本查询。我使用了以下代码:
import json,httplib
connection = httplib.HTTPSConnection('api.parse.com', 443)
connection.connect()
connection.request('GET', '/1/classes/MY-CLASS', '', {
"X-Parse-Application-Id": "MY-APP-ID",
"X-Parse-REST-API-Key": "MY-REST-API-KEY"
})
result = json.loads(connection.getresponse().read())
print result我收到以下消息:
Runtime error (IOException): Authentication failed because the remote party has closed the transport stream.
Traceback:
line 280, in do_handshake, "C:\Program Files\Rhinoceros 5.0 (64-bit)\Plug-ins\IronPython\Lib\ssl.py"
line 120, in __init__, "C:\Program Files\Rhinoceros 5.0 (64-bit)\Plug-ins\IronPython\Lib\ssl.py"
line 336, in wrap_socket, "C:\Program Files\Rhinoceros 5.0 (64-bit)\Plug-ins\IronPython\Lib\ssl.py"
line 1156, in connect, "C:\Program Files\Rhinoceros 5.0 (64-bit)\Plug-ins\IronPython\Lib\httplib.py"
line 3, in script任何帮助都将不胜感激!提前感谢!-Zach
发布于 2015-09-21 23:13:35
对我来说很好。也许防火墙阻止了你的请求?它似乎在ssl握手期间停止。
https://stackoverflow.com/questions/32697356
复制相似问题