<type 'exceptions.AssertionError'>
Python 2.7.9: /usr/bin/python
Sat May 26 14:24:51 2018

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>)
    556         """Runs the handler, flushes the streams, and ends the request."""
    557         try:
=>  558             protocolStatus, appStatus = self.server.handler(self)
    559         except:
    560             traceback.print_exc(file=self.stderr)
protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>>
 /usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>)
   1116         try:
   1117             try:
=> 1118                 result = self.application(environ, start_response)
   1119                 try:
   1120                     for data in result:
result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <Flask 'app'>, environ = {'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'DOCUMENT_ROOT': '/usr/local/nginx/html', 'DOCUMENT_URI': '/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_HOST': 'embedded.net.ru', 'HTTP_IF_MODIFIED_SINCE': 'Wed, 21 Mar 2018 18:40:29 GMT', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', ...}, start_response = <function start_response>
 /usr/local/lib/python2.7/dist-packages/flask/app.py in __call__(self=<Flask 'app'>, environ={'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'DOCUMENT_ROOT': '/usr/local/nginx/html', 'DOCUMENT_URI': '/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_HOST': 'embedded.net.ru', 'HTTP_IF_MODIFIED_SINCE': 'Wed, 21 Mar 2018 18:40:29 GMT', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', ...}, start_response=<function start_response>)
   1834     def __call__(self, environ, start_response):
   1835         """Shortcut for :attr:`wsgi_app`."""
=> 1836         return self.wsgi_app(environ, start_response)
   1837 
   1838     def __repr__(self):
self = <Flask 'app'>, self.wsgi_app = <app.PrefixMiddleware object>, environ = {'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'DOCUMENT_ROOT': '/usr/local/nginx/html', 'DOCUMENT_URI': '/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_HOST': 'embedded.net.ru', 'HTTP_IF_MODIFIED_SINCE': 'Wed, 21 Mar 2018 18:40:29 GMT', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', ...}, start_response = <function start_response>
 /home/green/git/pistreamer-server/app/__init__.py in __call__(self=<app.PrefixMiddleware object>, environ={'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'DOCUMENT_ROOT': '/usr/local/nginx/html', 'DOCUMENT_URI': '/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_HOST': 'embedded.net.ru', 'HTTP_IF_MODIFIED_SINCE': 'Wed, 21 Mar 2018 18:40:29 GMT', 'HTTP_USER_AGENT': 'CCBot/2.0 (http://commoncrawl.org/faq/)', ...}, start_response=<function start_response>)
     32             return self.app(environ, start_response)
     33         else:
=>   34             start_response('404', [('Content-Type', 'text/plain')])
     35             return ["This url does not belong to the app.".encode()]
     36 
start_response = <function start_response>
 /usr/lib/python2.7/dist-packages/flup/server/fcgi_base.py in start_response(status='404', response_headers=[('Content-Type', 'text/plain')], exc_info=None)
   1100 
   1101             assert type(status) is str, 'Status must be a string'
=> 1102             assert len(status) >= 4, 'Status must be at least 4 characters'
   1103             assert int(status[:3]), 'Status must begin with 3-digit code'
   1104             assert status[3] == ' ', 'Status must have a space after code'
builtin len = <built-in function len>, status = '404'

<type 'exceptions.AssertionError'>: Status must be at least 4 characters
      args = ('Status must be at least 4 characters',)
      message = 'Status must be at least 4 characters'