{"issue":{"created_at":"2011-11-04T08:38:29Z","state":"closed","updated_at":"2011-11-19T20:46:53Z","comments":5,"user":{"gravatar_id":"9a05859ce895e24f593846e0096993d6","id":180658,"url":"https://api.github.com/users/rgrp","login":"rgrp","avatar_url":"https://secure.gravatar.com/avatar/9a05859ce895e24f593846e0096993d6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"After several hours of debugging (this started while trying to implement stuff in dpm!) I have clearly established that writerow and writerows do not work with current webstore.\r\n\r\nSpecifically basic test code will hang after creating table and headers (only 'a') but failing to write any rows:\r\n\r\n<pre>\r\nimport webstore.client\r\ndb, table = webstore.client.URL('http://localhost:5001/test/test/data')\r\nrows = [\r\n    { 'a': '1' },\r\n    { 'b': '1' }\r\n    ]\r\ntable.writerows(rows)\r\n</pre>\r\n\r\nDigging in one can establish this is because _raw_request conn.getresponse never returns. Digging into webstore, after tortuous print debugging I've established this is because request.data hangs at https://github.com/okfn/webstore/blob/60baf8f2b5656a7f53d58dc13228bef6d5a07906/webstore/formats/ft_json.py#L9 Therefore suspect this is todo with miscommunication between client and webstore in a weird way.\r\n\r\nI note that curl csv upload to webstore does work.","assignee":{"gravatar_id":"6d7d4aa2b3f1602705b599cdd5dc72bd","id":41628,"url":"https://api.github.com/users/pudo","login":"pudo","avatar_url":"https://secure.gravatar.com/avatar/6d7d4aa2b3f1602705b599cdd5dc72bd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2141740,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":6,"title":"Webstore client is broken - writerow and writerows do not work","closed_at":"2011-11-19T20:46:53Z","html_url":"https://github.com/okfn/webstore-client/issues/6","milestone":null,"url":"https://api.github.com/repos/okfn/webstore-client/issues/6"},"action":"closed"}