-
Notifications
You must be signed in to change notification settings - Fork 93
Description
(python-venv) jchigu@SEBS:~$ curl 172.17.0.3:9000 --request POST -data '{"bucket": {
"input": "220.video-processing-0-input-d510f263-fb8e-49",
"output": "220.video-processing-0-output-82a4c8c3-3ddf-43"
},
"object": {
"duration": 1,
"key": "city.mp4",
"op": "watermark"
}
}' --header 'Content-Type: application/json'
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error: 500 Internal Server Error</title>
<style type="text/css">
html {background-color: #eee; font-family: sans;}
body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
pre {background-color: #eee; border: 1px solid #ddd; padding: 5px;}
</style>
</head>
<body>
<h1>Error: 500 Internal Server Error</h1>
<p>Sorry, the requested URL <tt>'http://172.17.0.3:9000/'</tt>
caused an error:</p>
<pre>Internal Server Error</pre>
<h2>Exception:</h2>
<pre>JSONDecodeError('Expecting value: line 1 column 1 (char 0)')</pre>
<h2>Traceback:</h2>
<pre>Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/bottle.py", line 868, in _handle
return route.call(**args)
File "/usr/local/lib/python3.7/site-packages/bottle.py", line 1748, in wrapper
rv = callback(*a, **ka)
File "/sebs/server.py", line 17, in flush_log
ret = function.handler(request.json)
File "/usr/local/lib/python3.7/site-packages/bottle.py", line 172, in get
if key not in storage: storage[key] = self.getter(obj)
File "/usr/local/lib/python3.7/site-packages/bottle.py", line 1129, in json
return json_loads(b)
File "/usr/local/lib/python3.7/site-packages/bottle.py", line 98, in <lambda>
json_loads = lambda s: json_lds(touni(s))
File "/usr/local/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
curl: (3) nested brace in URL position 12:
{"bucket": {
"input": "220.video-processing-0-input-d510f263-fb8e-49",
"output": "220.video-processing-0-output-82a4c8c3-3ddf-43"
},
"object": {
"duration": 1,
"key": "city.mp4",
"op": "watermark"
}
}
^
(python-venv) jchigu@SEBS:~$