Error message prevent ajax from rendering comments

Created on 18 April 2019, about 6 years ago
Updated 9 April 2025, 2 months ago

Error messages don't get processed and if one pops out, ajax no longer renders messages when they are posted.
They will all appear at once on page reload.

(example: user accidentally submits empty form, and after that, comments don't get rendered regular)

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇭🇷Croatia Ivan616

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • When an error message pops up (like from an empty form submission), it likely causes an uncaught JavaScript error that halts subsequent AJAX calls for rendering new messages. These messages then only appear on a page reload. To fix this, use your browser's developer tools (Console and Network tabs) to identify JavaScript errors and failed AJAX requests. Review your form TollByPlate submission and message rendering JavaScript code, ensuring proper error handling (using try...catch or .catch()) to prevent exceptions from breaking the AJAX functionality. Set breakpoints in your code to step through the execution during the error scenario.

Production build 0.71.5 2024