ERROR:main:Internal server error
Traceback (most recent call last):
File "/home/vahid/.virtualenvs/restfulpy-client.js/lib/python3.5/site-packages/nanohttp/application.py", line 56, in __call__
result = self.__root__(*remaining_paths)
File "/home/vahid/workspace/restfulpy/restfulpy/controllers.py", line 21, in __call__
return super().__call__(*remaining_paths)
File "/home/vahid/.virtualenvs/restfulpy-client.js/lib/python3.5/site-packages/nanohttp/controllers.py", line 59, in __call__
return self._serve_handler(handler, *remaining_paths)
File "/home/vahid/.virtualenvs/restfulpy-client.js/lib/python3.5/site-packages/nanohttp/controllers.py", line 30, in _serve_handler
return handler(*remaining_paths)
File "/home/vahid/.virtualenvs/restfulpy-client.js/lib/python3.5/site-packages/nanohttp/decorators.py", line 35, in wrapper
result = func(*args, **kwargs)
File "./tests/mockup-server.py", line 56, in echo
return context.form
File "/home/vahid/.virtualenvs/restfulpy-client.js/lib/python3.5/site-packages/nanohttp/contexts.py", line 159, in __getattr__
return getattr(Context.get_current(), key)
File "/home/vahid/.virtualenvs/restfulpy-client.js/lib/python3.5/site-packages/nanohttp/helpers.py", line 37, in __get__
val = f(obj)
File "/home/vahid/.virtualenvs/restfulpy-client.js/lib/python3.5/site-packages/nanohttp/contexts.py", line 97, in form
data = fp.read(self.request_content_length)
File "/home/vahid/.virtualenvs/restfulpy-client.js/lib/python3.5/site-packages/nanohttp/helpers.py", line 37, in __get__
val = f(obj)
File "/home/vahid/.virtualenvs/restfulpy-client.js/lib/python3.5/site-packages/nanohttp/contexts.py", line 41, in request_content_length
return None if v is None else int(v)
ValueError: invalid literal for int() with base 10: ''