facial-login-web icon indicating copy to clipboard operation
facial-login-web copied to clipboard

local variable data reference before assignment in post signup

Open abhisingh007224 opened this issue 5 years ago • 0 comments

getting this error Traceback (most recent call last): File "/Users/abhishekkumarsingh/opt/anaconda3/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app response = self.full_dispatch_request() File "/Users/abhishekkumarsingh/opt/anaconda3/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request rv = self.handle_user_exception(e) File "/Users/abhishekkumarsingh/opt/anaconda3/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception reraise(exc_type, exc_value, tb) File "/Users/abhishekkumarsingh/opt/anaconda3/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise raise value File "/Users/abhishekkumarsingh/opt/anaconda3/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request rv = self.dispatch_request() File "/Users/abhishekkumarsingh/opt/anaconda3/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request return self.view_functionsrule.endpoint File "keras_server.py", line 251, in signup_user if data['face_present']: UnboundLocalError: local variable 'data' referenced before assignment 127.0.0.1 - - [26/Jan/2020 00:28:16] "POST /signup_user HTTP/1.1" 500 - Inside post [2020-01-26 00:28:16,744] ERROR in app: Exception on /signup_user [POST]

abhisingh007224 avatar Jan 25 '20 19:01 abhisingh007224