(python-venv) jchigu@SEBS:~$ curl 172.17.0.3:9000 --request POST -o testresult501graphpagerankbenchmark.html --data '{"size": 10}' --header 'Content-Type: application/json'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1697 100 1685 100 12 17675 125 --:--:-- --:--:-- --:--:-- 18053
(python-venv) jchigu@SEBS:~$ cat testresult501graphpagerankbenchmark.html
<!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>TypeError("'<=' not supported between instances of 'int' and 'NoneType'")</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 "/function/function/function.py", line 17, in handler
random_numbers = sample(range(0, 1000000), size)
File "/usr/local/lib/python3.7/random.py", line 320, in sample
if not 0 <= k <= n:
TypeError: '<=' not supported between instances of 'int' and 'NoneType'
(python-venv) jchigu@SEBS:~$ curl 172.17.0.3:9000 --request POST -o testresult501graphpagerankbenchmark.html --data '{"size": 10}' --header 'Content-Type: application/json' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1697 100 1685 100 12 17675 125 --:--:-- --:--:-- --:--:-- 18053 (python-venv) jchigu@SEBS:~$ cat testresult501graphpagerankbenchmark.html
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 "/function/function/function.py", line 17, in handler random_numbers = sample(range(0, 1000000), size) File "/usr/local/lib/python3.7/random.py", line 320, in sample if not 0 <= k <= n: TypeError: '<=' not supported between instances of 'int' and 'NoneType'