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

Fix bad error messages on seed comment submission #1703

Open
metasoarous opened this issue Aug 9, 2023 · 0 comments
Open

Fix bad error messages on seed comment submission #1703

metasoarous opened this issue Aug 9, 2023 · 0 comments

Comments

@metasoarous
Copy link
Member

Expected behavior:
If there's an error with seed comment submission, such as a failed call to the Google Translate API, a simple message should be displayed like "Unable to translate comment. Please contact administrator."

Actual behavior:
An html response is sent, which is then rendered as an undecipherable string.

Screenshots:
image

Additional context:

  • Worth considering whether we should still accept the comment in this case, though we need to know lang for later translation steps, so maybe best to continue blocking here. Then again, could always backfill once translation is working again.
  • This may also affect comment submission from the participation UI.
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

1 participant