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

HTTP 500 while reading corpus examples #241

Open
lgessler opened this issue Jan 16, 2022 · 7 comments
Open

HTTP 500 while reading corpus examples #241

lgessler opened this issue Jan 16, 2022 · 7 comments

Comments

@lgessler
Copy link
Contributor

on: http://flat.nert.georgetown.edu/en/in/Temporal--Locus/

@nschneid
Copy link
Contributor

It works fine for me

@nschneid
Copy link
Contributor

(it appears there are no corpus examples for that one)

@lgessler
Copy link
Contributor Author

really? I get GET http://flat.nert.georgetown.edu/_table/usage/1681/ 500 (Internal Server Error) in the browser console and a non-stop spinner in the UI where the table ought to be

@lgessler
Copy link
Contributor Author

oh I should have specified in the original issue--the initial page load is fine but the 500 is on the AJAX for the usage table

@nschneid
Copy link
Contributor

Ah. I think the spinner always stays when there are no results to display. Would be better to output an empty list.

@nschneid
Copy link
Contributor

Guessing the problem is in https://github.com/nert-nlp/Xposition/blob/master/src/wiki/plugins/metadata/tables.py. I don't see any logic specifically for handling empty tables, not sure if it is needed.

@nschneid
Copy link
Contributor

Actually

raise Http404(f"Couldn't find tokens for article {article_id} of type '{metadata_type}'")
could be it (would triggering a 404 lead to a 500 being displayed?)

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

No branches or pull requests

2 participants