-
Notifications
You must be signed in to change notification settings - Fork 45
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
500 when accepting follow requests #2651
Comments
Idea: try/catch around the follow acceptance and just remove the follow request if THIS exception occurs |
I cannot find the cause of your problem. We have two endpoints APIv1 and legacy frontend. Both Endpoints catches the AlreadyFollowingException and don't return HTTP 500 then. traewelling/app/Http/Controllers/API/v1/FollowController.php Lines 63 to 64 in a55c811
traewelling/app/Http/Controllers/FrontendUserController.php Lines 78 to 79 in a55c811
|
No, it's in traewelling/app/Http/Controllers/Backend/User/FollowController.php Lines 70 to 79 in a55c811
|
Describe the bug
In very rare cases it's possible to provoke an error 500 (AlreadyFollowingException) when accepting a follow request
Steps to reproduce
This cannot easily be reproduced without manipulating the database.
follows
follow_requests
Browser console logs
No response
Browser
No response
The text was updated successfully, but these errors were encountered: