Closed yaqwsx closed 9 years ago
on to jeste muze byt relikt "manualniho" vytvareni uzivatelu...ono totiz pri registraci ucastnika se musi ulozit 2 zaznamy - do tabulky users
a do tabulky profile
...pricemz v ranne fazi vyvoje tohle samozrejme nebylo (protoze nebyla registrace) :D
takze se prosim podivejte do DB a vsechny uzivatele s roli participant
bez zaznamu v tabulce profile
prosim smazte a pak to zkuste znovu...
[2015-10-07 09:52:25 +0000] [11306] [ERROR] Error handling request Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/sync.py", line 130, in handle self.handle_request(listener, req, client, addr) File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/sync.py", line 171, in handle_request respiter = self.wsgi(environ, resp.start_response) File "/usr/local/lib/python2.7/dist-packages/falcon/api.py", line 182, in call responder(req, resp, _params) File "/usr/local/lib/python2.7/dist-packages/falcon/hooks.py", line 267, in do_before responder(req, resp, _kwargs) File "/usr/local/lib/python2.7/dist-packages/falcon/hooks.py", line 215, in do_after responder(req, resp, _kwargs) File "/home/ksi/web-backend/endpoint/user.py", line 36, in on_get users_json = [ util.user.to_json(user) for user in users ] File "/home/ksi/web-backend/util/user.py", line 47, in to_json data['addr_country'] = profile.addr_country AttributeError: 'NoneType' object has no attribute 'addr_country' [2015-10-07 09:52:27] [147.251.68.17] [OPTIONS] [204 No Content] /users?filter=participants [2015-10-07 09:52:27 +0000] [11306] [ERROR] Error handling request Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/sync.py", line 130, in handle self.handle_request(listener, req, client, addr) File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/sync.py", line 171, in handle_request respiter = self.wsgi(environ, resp.start_response) File "/usr/local/lib/python2.7/dist-packages/falcon/api.py", line 182, in call responder(req, resp, _params) File "/usr/local/lib/python2.7/dist-packages/falcon/hooks.py", line 267, in do_before responder(req, resp, _kwargs) File "/usr/local/lib/python2.7/dist-packages/falcon/hooks.py", line 215, in do_after responder(req, resp, _kwargs) File "/home/ksi/web-backend/endpoint/user.py", line 36, in on_get users_json = [ util.user.to_json(user) for user in users ] File "/home/ksi/web-backend/util/user.py", line 47, in to_json data['addr_country'] = profile.addr_country AttributeError: 'NoneType' object has no attribute 'addr_country'