fix(exceptions): Catch AlreadyProcessedException as well now #1892
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Follow up to #1882 to fix e.g.
https://github.com/nextcloud/spreed/actions/runs/8686992057/job/23819618008?pr=12110
{"Exception":"OCP\\Notification\\AlreadyProcessedException","Message":"Notification is processed already","Code":0,"Trace":[{"file":"\/home\/runner\/actions-runner\/_work\/spreed\/spreed\/apps\/spreed\/lib\/Notification\/Notifier.php","line":213,"function":"parseRemoteInvitationMessage","class":"OCA\\Talk\\Notification\\Notifier","type":"->","args":[["OC\\Notification\\Notification"],["OC\\L10N\\LazyL10N"]]},{"file":"\/home\/runner\/actions-runner\/_work\/spreed\/spreed\/lib\/private\/Notification\/Manager.php","line":355,"function":"prepare","class":"OCA\\Talk\\Notification\\Notifier","type":"->","args":[["OC\\Notification\\Notification"],"en"]},{"file":"\/home\/runner\/actions-runner\/_work\/spreed\/spreed\/apps\/notifications\/lib\/Controller\/EndpointController.php","line":118,"function":"prepare","class":"OC\\Notification\\Manager","type":"->","args":[["OC\\Notification\\Notification"],"en"]},{"file":"\/home\/runner\/actions-runner\/_work\/spreed\/spreed\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":232,"function":"listNotifications","class":"OCA\\Notifications\\Controller\\EndpointController","type":"->","args":["v2"]},{"file":"\/home\/runner\/actions-runner\/_work\/spreed\/spreed\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Notifications\\Controller\\EndpointController"],"listNotifications"]},{"file":"\/home\/runner\/actions-runner\/_work\/spreed\/spreed\/lib\/private\/AppFramework\/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Notifications\\Controller\\EndpointController"],"listNotifications"]},{"file":"\/home\/runner\/actions-runner\/_work\/spreed\/spreed\/lib\/private\/Route\/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Notifications\\Controller\\EndpointController","listNotifications",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["v2","ocs.notifications.endpoint.listnotifications"]]},{"file":"\/home\/runner\/actions-runner\/_work\/spreed\/spreed\/ocs\/v1.php","line":66,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/ocsapp\/apps\/notifications\/api\/v2\/notifications"]},{"file":"\/home\/runner\/actions-runner\/_work\/spreed\/spreed\/ocs\/v2.php","line":23,"args":["\/home\/runner\/actions-runner\/_work\/spreed\/spreed\/ocs\/v1.php"],"function":"require_once"}],"File":"\/home\/runner\/actions-runner\/_work\/spreed\/spreed\/apps\/spreed\/lib\/Notification\/Notifier.php","Line":415,"message":"Notification is processed already","exception":{},"CustomMessage":"Notification is processed already"}