You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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:
The text was updated successfully, but these errors were encountered: