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

Error to manage when trying to create a competition without any existing gym #17

Open
scorreia opened this issue Nov 8, 2023 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@scorreia
Copy link
Collaborator

scorreia commented Nov 8, 2023

Start the application for the very time (no data created)
Login and create a new competition (without having first created a gym).

then, we get this error:
Traceback (most recent call last):
File "/Users/scorreia/devel/git/skala3ma/.venv/lib/python3.11/site-packages/flask/app.py", line 2463, in call
return self.wsgi_app(environ, start_response)
File "/Users/scorreia/devel/git/skala3ma/.venv/lib/python3.11/site-packages/flask/app.py", line 2449, in wsgi_app
response = self.handle_exception(e)
File "/Users/scorreia/devel/git/skala3ma/.venv/lib/python3.11/site-packages/flask/app.py", line 1866, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/scorreia/devel/git/skala3ma/.venv/lib/python3.11/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/Users/scorreia/devel/git/skala3ma/.venv/lib/python3.11/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/Users/scorreia/devel/git/skala3ma/.venv/lib/python3.11/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/scorreia/devel/git/skala3ma/.venv/lib/python3.11/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/scorreia/devel/git/skala3ma/.venv/lib/python3.11/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/Users/scorreia/devel/git/skala3ma/.venv/lib/python3.11/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/scorreia/devel/git/skala3ma/.venv/lib/python3.11/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "/Users/scorreia/devel/git/skala3ma/competitionsApp.py", line 163, in decorated_function
return fn(*args, **kwargs)
File "/Users/scorreia/devel/git/skala3ma/competitionsApp.py", line 693, in new_competition_post
competitionId = competitionsEngine.addCompetition(None, name, date, routesid, max_participants)
File "/Users/scorreia/devel/git/skala3ma/competitionsEngine.py", line 149, in addCompetition
competition = {"id": compId, "name": name, "date": date, "gym": gym['name'],"gym_id":gym['id'],

@scorreia scorreia added bug Something isn't working good first issue Good for newcomers labels Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant