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

If no map has been generated yet, an internal server error occurs when trying to upload a sketch map #242

Closed
mhhd2020 opened this issue Apr 13, 2023 · 0 comments · Fixed by #244
Assignees
Labels
bug Something isn't working

Comments

@mhhd2020
Copy link
Contributor

mhhd2020 commented Apr 13, 2023

A fitting error message should be shown instead.

Traceback:

ERROR:sketch_map_tool:Exception on /digitize/results [POST]
sketch-map-tool-flask-1     | Traceback (most recent call last):
sketch-map-tool-flask-1     |   File "/home/smt/.cache/pypoetry/virtualenvs/sketch-map-tool-7oog9W5A-py3.10/lib/python3.10/site-packages/flask/app.py", line 2528, in wsgi_app
sketch-map-tool-flask-1     |     response = self.full_dispatch_request()
sketch-map-tool-flask-1     |   File "/home/smt/.cache/pypoetry/virtualenvs/sketch-map-tool-7oog9W5A-py3.10/lib/python3.10/site-packages/flask/app.py", line 1825, in full_dispatch_request
sketch-map-tool-flask-1     |     rv = self.handle_user_exception(e)
sketch-map-tool-flask-1     |   File "/home/smt/.cache/pypoetry/virtualenvs/sketch-map-tool-7oog9W5A-py3.10/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request
sketch-map-tool-flask-1     |     rv = self.dispatch_request()
sketch-map-tool-flask-1     |   File "/home/smt/.cache/pypoetry/virtualenvs/sketch-map-tool-7oog9W5A-py3.10/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request
sketch-map-tool-flask-1     |     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
sketch-map-tool-flask-1     |   File "/opt/smt/sketch_map_tool/routes.py", line 114, in digitize_results_post
sketch-map-tool-flask-1     |     map_frame_buffer = BytesIO(db_client_flask.select_map_frame(UUID(uuid)))
sketch-map-tool-flask-1     |   File "/opt/smt/sketch_map_tool/database/client_flask.py", line 144, in select_map_frame
sketch-map-tool-flask-1     |     curs.execute(query, [str(uuid)])
sketch-map-tool-flask-1     | psycopg2.errors.UndefinedTable: relation "map_frame" does not exist
sketch-map-tool-flask-1     | LINE 1: SELECT file FROM map_frame WHERE uuid = '01127aff-59a0-4aad-...

@mhhd2020 mhhd2020 added the bug Something isn't working label Apr 13, 2023
@mhhd2020 mhhd2020 self-assigned this Apr 13, 2023
mhhd2020 added a commit that referenced this issue Apr 13, 2023
@mhhd2020 mhhd2020 linked a pull request Apr 13, 2023 that will close this issue
mhhd2020 added a commit that referenced this issue May 9, 2023
If no map has been generated yet, a fitting error message is shown when something is uploaded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant