Closed subu-cliqz closed 9 years ago
@subu-cliqz I had the same problem. Any hints ?
@efva I dont exactly remember now, but I think I fixed it by compacting my json before sending it. Something along the lines of separators=(',',':') in json.dumps()
Thanks for the hint @subu-cliqz , I'll look around. From the source code: -- JSON server/client -- This is a non-standard protocol, which is very handy -- to serialize data from one process to another. Each packet -- is a table, serialized as a JSON string. Each JSON string -- is separated by a \n. See examples. Not exactly sure what does that mean since I'm not very familiar with REST APIs / JSONS but'll I'll probably try different separators and see what happens.
The example json server code does not seem to be working with the python requests library as a client, fails with a "Bad json request" error.
SERVER IN LUA:
CLIENT IN PYTHON: