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

Report User Broken #488

Closed
fcaps opened this issue Nov 22, 2023 · 1 comment · Fixed by #504
Closed

Report User Broken #488

fcaps opened this issue Nov 22, 2023 · 1 comment · Fixed by #504

Comments

@fcaps
Copy link
Collaborator

fcaps commented Nov 22, 2023

due to poor error-handling in the app, report user is crashing the container (or the node process).
Reason:
API needs an authenticated user, and node is not providing it + poor error-handling.

 /code/routes/views/account/post/report.js:86
website-website-1  |           flash.messages = [{msg: 'Error while submitting the report form: '+e.toString()}];
website-website-1  |                                                                                ^
website-website-1  |
website-website-1  |     TypeError: Cannot read properties of null (reading 'toString')
website-website-1  |         at module.exports (/code/routes/views/account/post/report.js:86:76)
website-website-1  |         at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
@fcaps
Copy link
Collaborator Author

fcaps commented Nov 28, 2023

fixed some issues with #499
still offenders and suggests are empty

@fcaps fcaps mentioned this issue Dec 1, 2023
@fcaps fcaps closed this as completed in #504 Dec 1, 2023
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

Successfully merging a pull request may close this issue.

1 participant