benoitc/restkit — Issue #78: response is not returned
Author: drewp
Created: 2011-11-25 09:43:02+00:00
State: open

In ipython:

In [13]: restkit.__version__
Out[13]: '3.3.2'

In [11]: restkit.Resource("http://10.1.0.1:9037/render").get(rawData='true',target='keepLastValue(system.house.temp.livingRoom)', **{'from':'-60minutes'}).body_string()
Out[11]: ''

strace shows this, which includes the output I was expecting:

connect(3, {sa_family=AF_INET, sin_port=htons(9037), sin_addr=inet_addr("10.1.0.1")}, 16) = 0
sendto(3, "GET /render?from=-60minutes&target=keepLastValue%28system.house.temp.livingRoom%29&rawData=true HTTP/1.1\r\nHost: 10.1.0.1:9037\r\nUser-Agent: restkit/3.3.2\r\nAccept-Encoding: identity\r\n\r\n", 183, 0, NULL, 0) = 183
recvfrom(3, "HTTP/1.1 200 OK\r\nServer: gunicorn/0.10.0\r\nDate: Fri, 25 Nov 2011 09:36:23 GMT\r\nConnection: keep-alive\r\nVary: Accept-Encoding\r\nContent-Type: text/plain\r\n\r\nkeepLastValue(system.house.temp.livingRoom),1322210280,1322213880,120|66.7625,66.65,66.5375,66.425,66.3125,66.2,65.4125,66.0875,65.975,66.0875,67.6625,68.3375,69.125,68.9,68.7875,69.6875,69.6875,69.2375,69.575,69.575,69.6875,68.7875,67.775,68.225,67.8875,67.6625,67.6625,67.55,67.2125,66.9875\n", 8192, 0, NULL, NULL) = 447