-
Bug
-
Resolution: Fixed
-
Normal
-
None
-
None
-
None
Somehow I managed to make 2 POST requests to submit a rating. When I submitted the second one, I received an error about an existing unique key in the database (similar to CB-368).
Then, when trying to retrieve the entity that I rated, I get the following error:
Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/werkzeug/middleware/dispatcher.py", line 66, in __call__ return app(environ, start_response) File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2309, in __call__ return self.wsgi_app(environ, start_response) File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2295, in wsgi_app response = self.handle_exception(e) File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1741, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python3.8/site-packages/flask/_compat.py", line 35, in reraise raise value File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2292, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python3.8/site-packages/flask/_compat.py", line 35, in reraise raise value File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1813, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.8/site-packages/flask_debugtoolbar/__init__.py", line 125, in dispatch_request return view_func(**req.view_args) File "/code/critiquebrainz/frontend/views/release_group.py", line 69, in entity my_review = my_reviews[0] if my_count else None IndexError: list index out of range