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

Importing duplicated files results in internal server error #146

Open
yarl opened this issue May 18, 2019 · 3 comments
Open

Importing duplicated files results in internal server error #146

yarl opened this issue May 18, 2019 · 3 comments

Comments

@yarl
Copy link
Member

yarl commented May 18, 2019

When posting payload below to /admin/round/<id>/import

{
  "import_method": "selected",
  "file_names": ["Bytom, Rynek 24.jpg","Bytom, Rynek 24.jpg","Bytom, Rynek 24.jpg","Bytom, Rynek 24.jpg","Bytom, Rynek 24.jpg"]
}

Response is 500 with detail: <ExceptionInfo [sqlalchemy.exc.IntegrityError: (...)

It should be handled more gracefully in order to properly handle on front-end.

@yarl
Copy link
Member Author

yarl commented May 18, 2019

Should be part of the #141 list.

@slaporte
Copy link
Member

From the api exception log, this appears to be a duplicate entry error. That shouldn't happen!

I'll add it to the list.

@atsirlin
Copy link

Interestingly, this error occurs only for import_method=selected and does not occur for import_method=gistcsv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants