I had a few use cases for client that wanted to upload an existing CSV/XSLX file to their kobotoolbox instance. Using POSTMAN to do this was quite complex even for me. So I created a tool to do this a simple docker image that you can deploy, it is still under-development, so your feedback will be much appreciated.
Thanks for putting this together! I can get it built fine, but I’m getting a 500 error when I try to access it at localhost.
compose logs show:
Expecting value: line 4 column 1 (char 3)
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 976, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 4 column 1 (char 3)
Which is a bit beyond my meagre docker/python knowledge to decipher, any thoughts would be appreciated. This is running in Docker Desktop in Linux if that’s relevant.