Skip to content

Instantly share code, notes, and snippets.

@stopspazzing
Created April 28, 2017 00:58
Show Gist options
  • Save stopspazzing/92bf288e56deb6a8ce8a943bc61442e4 to your computer and use it in GitHub Desktop.
Save stopspazzing/92bf288e56deb6a8ce8a943bc61442e4 to your computer and use it in GitHub Desktop.
error when running it
/usr/local/bin/python3.6 /home/python/pycharm-community-2017.1.1/helpers/pydev/pydevd.py --multiproc --qt-support --client 127.0.0.1 --port 35643 --file /home/python/PycharmProjects/Sanic-Server-with-MDL-Blog-Template/main.py
Connected to pydev debugger (build 171.4163.6)
pydev debugger: process 14333 is connecting
2017-04-27 17:53:33,957: DEBUG:
▄▄▄▄▄
▀▀▀██████▄▄▄ _______________
▄▄▄▄▄ █████████▄ / \
▀▀▀▀█████▌ ▀▐▄ ▀▐█ | Gotta go fast! |
▀▀█████▄▄ ▀██████▄██ | _________________/
▀▄▄▄▄▄ ▀▀█▄▀█════█▀ |/
▀▀▀▄ ▀▀███ ▀ ▄▄
▄███▀▀██▄████████▄ ▄▀▀▀▀▀▀█▌
██▀▄▄▄██▀▄███▀ ▀▀████ ▄██
▄▀▀▀▄██▄▀▀▌████▒▒▒▒▒▒███ ▌▄▄▀
▌ ▐▀████▐███▒▒▒▒▒▐██▌
▀▄▄▄▄▀ ▀▀████▒▒▒▒▄██▀
▀▀█████████▀
▄▄██▀██████▀█
▄██▀ ▀▀▀ █
▄█ ▐▌
▄▄▄▄█▌ ▀█▄▄▄▄▀▀▄
▌ ▐ ▀▀▄▄▄▀
▀▀▄▄▀
2017-04-27 17:53:33,957: INFO: Goin' Fast @ http://127.0.0.1:8000
2017-04-27 17:53:33,963: INFO: Starting worker [14333]
2017-04-27 17:53:38,145: ERROR: Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/sanic/app.py", line 448, in handle_request
response = await self._run_request_middleware(request)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/sanic/app.py", line 612, in _run_request_middleware
response = await response
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/sanic_wtf/__init__.py", line 99, in setup_csrf_context
Meta.csrf_context = self.get_csrf_context(request)
KeyError: 'session'
2017-04-27 17:53:38,145: ERROR: Exception occurred while handling uri: "http://127.0.0.1:8000/login"
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/sanic/app.py", line 448, in handle_request
response = await self._run_request_middleware(request)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/sanic/app.py", line 612, in _run_request_middleware
response = await response
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/sanic_wtf/__init__.py", line 99, in setup_csrf_context
Meta.csrf_context = self.get_csrf_context(request)
KeyError: 'session'
2017-04-27 17:53:38,174: ERROR: Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/sanic/app.py", line 448, in handle_request
response = await self._run_request_middleware(request)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/sanic/app.py", line 612, in _run_request_middleware
response = await response
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/sanic_wtf/__init__.py", line 99, in setup_csrf_context
Meta.csrf_context = self.get_csrf_context(request)
KeyError: 'session'
2017-04-27 17:53:38,174: ERROR: Exception occurred while handling uri: "http://127.0.0.1:8000/favicon.ico"
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/sanic/app.py", line 448, in handle_request
response = await self._run_request_middleware(request)
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/sanic/app.py", line 612, in _run_request_middleware
response = await response
File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 109, in __next__
return self.gen.send(None)
File "/usr/local/lib/python3.6/site-packages/sanic_wtf/__init__.py", line 99, in setup_csrf_context
Meta.csrf_context = self.get_csrf_context(request)
KeyError: 'session'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment