ecelis / celso

NextJS + Next-Auth Face detection based framework
Apache License 2.0
0 stars 0 forks source link

Error on login on fresh install #17

Open ecelis opened 1 year ago

ecelis commented 1 year ago

Stacktrace:

127.0.0.1 - - [21/May/2023 19:49:01] "POST /match HTTP/1.1" 500 -
Traceback (most recent call last):
  File "/home/ecelis/anaconda3/envs/celso/lib/python3.11/site-packages/flask/app.py", line 2213, in __call__
    return self.wsgi_app(environ, start_response)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ecelis/anaconda3/envs/celso/lib/python3.11/site-packages/flask/app.py", line 2193, in wsgi_app
    response = self.handle_exception(e)
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ecelis/anaconda3/envs/celso/lib/python3.11/site-packages/flask_cors/extension.py", line 165, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
                                                ^^^^^^^^^^^^^^^^^^^^
  File "/home/ecelis/anaconda3/envs/celso/lib/python3.11/site-packages/flask/app.py", line 2190, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ecelis/anaconda3/envs/celso/lib/python3.11/site-packages/flask/app.py", line 1486, in full_dispatch_request
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ecelis/anaconda3/envs/celso/lib/python3.11/site-packages/flask_cors/extension.py", line 165, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
                                                ^^^^^^^^^^^^^^^^^^^^
  File "/home/ecelis/anaconda3/envs/celso/lib/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ecelis/anaconda3/envs/celso/lib/python3.11/site-packages/flask/app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ecelis/Projects/celso/faces/faces/__main__.py", line 65, in duplicate
    result = detect.match(json_data['picture'])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ecelis/Projects/celso/faces/faces/detect.py", line 95, in match
    result = self.match_encodings(image_encodings)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ecelis/Projects/celso/faces/faces/detect.py", line 67, in match_encodings
    return {'error': error, 'success': False}
                     ^^^^^^^^^^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'error' where it is not associated with a value
ecelis commented 1 year ago

/!\ UserEncodings collection is empty