Closed rhaarm closed 6 years ago
I also discovered that this doesn't support Python 3.5 in general when the JSON packet for the options is passed back to the api from the frontend. I had to run this under Python 2.7 in order to get the scheduler to run and accept new job tasks.
Traceback (most recent call last): File "/usr/local/lib/python3.5/site-packages/tornado/web.py", line 1422, in _execute result = self.prepare() File "/src/ndscheduler/ndscheduler/server/handlers/base.py", line 25, in prepare self.json_args = json.loads(self.request.body) File "/usr/local/lib/python3.5/json/init.py", line 312, in loads s.class.name)) TypeError: the JSON object must be str, not 'bytes' 2017-05-08 15:23:44,343 - tornado.access - ERROR - 500 POST /api/v1/jobs (172.17.0.1) 15.47ms
Should all be fixed in https://github.com/Nextdoor/ndscheduler/pull/16