masonite.exceptions.ResponseError
Responses cannot be of type: None. Did you return anything in your responsable method?
Stack Trace (4)
Integrations: Possible Solutions (0) StackOverflow (12)
#1 ../lib/python3.7/site-packages/masonite/response.py:173

             view = self.data()  
         if isinstance(view, (Paginator, LengthAwarePaginator)):  
             return self.paginated_json(view, status=self.request.get_status())  
         elif view is None:  
             raise ResponseError('Responses cannot be of type: None. Did you return anything in your responsable method?')  
 
        if isinstance(view, str):             self.app.bind('Response', bytes(view, 'utf-8'))
        else:             self.app.bind('Response', view)
self
<masonite.response.Response object at 0x7f88edbf1cf8>
view
None
status
200
#2 ..f.by/app/providers/RouteProviderMod.py:95

 
                        This data is typically the output of the controller method depending                         on the type of route.                     """                     response.view(route.get_response(), status=200)                 """Execute Route After Route Middleware                     This is middleware that contains an after method.                 """
self
<app.providers.RouteProviderMod.RouteProvider object at 0x7f88eda67668>
router
<masonite.routes.Route object at 0x7f88edc29eb8>
request
<masonite.request.Request object at 0x7f88edbf1898>
response
<masonite.response.Response object at 0x7f88edbf1cf8>
application
<module 'config.application' from '/var/www/chatoff.by/config/application.py'>
route
<masonite.routes.Get object at 0x7f88edcad588>
matchurl
re.compile('^\\/$')
parameter_dict
{}
http_middleware
<class 'app.http.middleware.LoadDataMiddleware.LoadDataMiddleware'>
located_middleware
<app.http.middleware.LoadDataMiddleware.LoadDataMiddleware object at 0x7f88edba44a8>
#3 ..e2/lib/python3.7/site-packages/masonite/app.py:190

                     self._remembered[obj] = objects  
                 else:  
                     signature = "{}.{}.{}".format(obj.__module__, obj.__self__.__class__.__name__, obj.__name__)  
                     self._remembered[signature] = objects  
             return obj(*objects)  
         except (TypeError,) as e:  
             raise ContainerError(str(e) + ' while calling {}'.format(obj)) 
from e     def collect(self, search):         """Fetch a dictionary of objects using a search query.
self
<masonite.app.App object at 0x7f88edbf1278>
obj
<bound method RouteProvider.boot of <app.providers.RouteProviderMod.RouteProvider object at 0x7f88eda67668>>
resolving_arguments
()
objects
[<masonite.routes.Route object at 0x7f88edc29eb8>, <masonite.request.Request object at 0x7f88edbf1898>, <masonite.response.Response object at 0x7f88edbf1cf8>]
passing_arguments
[]
_
'response'
value
<Parameter "response: masonite.response.Response">
param
<masonite.response.Response object at 0x7f88edbf1cf8>
#4 ..atoff.by/bootstrap/start.py:38

     """  
   
     try:  
         for provider in container.make('WSGIProviders'):  
 
            container.resolve(provider.boot)     except Exception as e:         traceback.print_exc()         container.make('ExceptionHandler').load_exception(e)
    """We Are Ready For Launch
environ
{'SCRIPT_URL': '/', 'SCRIPT_URI': 'https://chatoff.by/', 'SSL_TLS_SNI': 'chatoff.by', 'GATEWAY_INTERFACE': 'CGI/1.1', 'SERVER_PROTOCOL': 'HTTP/1.1', 'REQUEST_METHOD': 'GET', 'QUERY_STRING': '', 'REQUEST_URI': '/', 'SCRIPT_NAME': '', 'PATH_INFO': '/', 'PATH_TRANSLATED': '/var/www/chatoff.by/wsgi.py/', 'HTTP_ACCEPT': '*/*', 'HTTP_USER_AGENT': 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_REFERER': 'https://chatoff.by/minsk/restoran/tags/option-kavkazskaya/street-ul.gikalo/&sort=name', 'HTTP_HOST': 'chatoff.by', 'SERVER_SIGNATURE': '<address>Apache/2.4.38 (Debian) Server at chatoff.by Port 443</address>\n', 'SERVER_SOFTWARE': 'Apache/2.4.38 (Debian)', 'SERVER_NAME': 'chatoff.by', 'SERVER_ADDR': '45.128.205.138', 'SERVER_PORT': '443', 'REMOTE_ADDR': '18.224.30.118', 'DOCUMENT_ROOT': '/var/www/html', 'REQUEST_SCHEME': 'https', 'CONTEXT_PREFIX': '', 'CONTEXT_DOCUMENT_ROOT': '/var/www/html', 'SERVER_ADMIN': '[no address given]', 'SCRIPT_FILENAME': '/var/www/chatoff.by/wsgi.py', 'REMOTE_PORT': '52966', 'mod_wsgi.script_name': '', 'mod_wsgi.path_info': '/', 'mod_wsgi.process_group': 'chatoff', 'mod_wsgi.application_group': '', 'mod_wsgi.callable_object': 'application', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.handler_script': '', 'mod_wsgi.script_reloading': '1', 'mod_wsgi.listener_host': '', 'mod_wsgi.listener_port': '443', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.ignore_activity': '0', 'mod_wsgi.request_start': '1713540269410790', 'mod_wsgi.request_id': '5gkRr9SjBg4', 'mod_wsgi.queue_start': '1713540269411042', 'mod_wsgi.daemon_connects': '1', 'mod_wsgi.daemon_restarts': '0', 'mod_wsgi.daemon_start': '1713540269411281', 'mod_wsgi.script_start': '1713540269426266', 'wsgi.version': (1, 0), 'wsgi.multithread': True, 'wsgi.multiprocess': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.errors': <_io.TextIOWrapper name='<wsgi.errors>' encoding='utf-8'>, 'wsgi.input': <mod_wsgi.Input object at 0x7f88edb4c030>, 'wsgi.input_terminated': True, 'wsgi.file_wrapper': <class 'mod_wsgi.FileWrapper'>, 'apache.version': (2, 4, 38), 'mod_wsgi.version': (4, 7, 0), 'mod_wsgi.total_requests': 37430, 'mod_wsgi.thread_id': 2, 'mod_wsgi.thread_requests': 8143, 'HTTP_COOKIE': 'csrf_token=1b792535461c834dcc324b6e2b039d; HttpOnly;Path=/'}
start_response
<built-in method start_response of mod_wsgi.Adapter object at 0x7f88ed9bc328>
container
<masonite.app.App object at 0x7f88edbf1278>
provider
<app.providers.RouteProviderMod.RouteProvider object at 0x7f88eda67668>
e
ResponseError('Responses cannot be of type: None. Did you return anything in your responsable method?')

Environment & Details

Show Information

Packages

Show Information