parse.com - Parse error when using example Python code for REST API "Authentication failed because the remote party has closed the transport stream" -


i can't figure out going on. using example python code found here basic query on parse class. using following code:

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 

i following messages:

runtime error (ioexception): authentication failed because remote party has closed 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 

any appreciated! in advance! -zach

works fine me. maybe firewall blocking request? seems stop during ssl handshake.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -