Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError @ _setup_cookie when signing/logging in #122

Open
nyiyui opened this issue Jun 7, 2019 · 1 comment
Open

TypeError @ _setup_cookie when signing/logging in #122

nyiyui opened this issue Jun 7, 2019 · 1 comment

Comments

@nyiyui
Copy link

nyiyui commented Jun 7, 2019

Cork v0.12
Bottle v0.13-dev
Source (ZIP File)

Python 3 Output

Bottle v0.13-dev server starting up (using WSGIRefServer())...
Listening on http://0.0.0.0:8080/
Hit Ctrl-C to quit.

172.18.0.1 - - [07/Jun/2019 18:34:40] "GET / HTTP/1.1" 200 1076
172.18.0.1 - - [07/Jun/2019 18:34:40] "GET /rsc/css/index HTTP/1.1" 404 764
172.18.0.1 - - [07/Jun/2019 18:34:40] "GET /rsc/js/acnt/signin HTTP/1.1" 404 774
172.18.0.1 - - [07/Jun/2019 18:34:40] "GET /rsc/js/index HTTP/1.1" 404 762
172.18.0.1 - - [07/Jun/2019 18:34:40] "GET /rsc/img/favicon HTTP/1.1" 200 0
172.18.0.1 - - [07/Jun/2019 18:34:40] "GET /rsc/js/acnt/signin HTTP/1.1" 404 774
kenxshibata kenxshibata <- this is debug output for username and password I know it's a security hole
Traceback (most recent call last):
  File "/home/runner/bottle.py", line 996, in _handle
    out = route.call(**args)
  File "/home/runner/bottle.py", line 2007, in wrapper
    rv = callback(*a, **ka)
  File "main.py", line 21, in login
    auth.login(username, password, success_redirect='/acnt/signin/success', fail_redirect='/acnt/signin/fail')
  File "/home/runner/cork/cork/cork.py", line 130, in login
    self._setup_cookie(username)
  File "/home/runner/cork/cork/cork.py", line 603, in _setup_cookie
    session['username'] = username
TypeError: 'NoneType' object does not support item assignment
172.18.0.1 - - [07/Jun/2019 18:34:41] "POST /acnt/signin HTTP/1.1" 500 770```
@cadaverous-lives
Copy link

I'm getting this same error:

Traceback (most recent call last):
File "/home/cadaverous/.local/lib/python3.7/site-packages/bottle.py", line 862, in _handle
return route.call(**args)
File "/home/cadaverous/.local/lib/python3.7/site-packages/bottle.py", line 1742, in wrapper
rv = callback(*a, **ka)
File "/home/cadaverous/Projects/webapptut/todo.py", line 24, in do_login
auth.login(username, password, "/home", "/login/retry")
File "/home/cadaverous/.local/lib/python3.7/site-packages/cork/cork.py", line 130, in login
self._setup_cookie(username)
File "/home/cadaverous/.local/lib/python3.7/site-packages/cork/cork.py", line 603, in _setup_cookie
session['username'] = username
TypeError: 'NoneType' object does not support item assignment``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants