Add error handling when trying to create or delete database #419

Closed
opened 2026-02-05 17:34:30 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @notAreYouScared on GitHub (Sep 4, 2025).

Originally assigned to: @rmartinoscar on GitHub.

Catch errors instead of showing a 500

925ab26fb4/app/Filament/Server/Resources/DatabaseResource/Pages/ListDatabases.php (L64-L71)
925ab26fb4/app/Filament/Server/Resources/DatabaseResource.php (L124-L125)

Example when mysql server is offline:
SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it

Originally created by @notAreYouScared on GitHub (Sep 4, 2025). Originally assigned to: @rmartinoscar on GitHub. Catch errors instead of showing a 500 https://github.com/pelican-dev/panel/blob/925ab26fb4a6fab5d2ec780bc0b4c4e39295ee9b/app/Filament/Server/Resources/DatabaseResource/Pages/ListDatabases.php#L64-L71 https://github.com/pelican-dev/panel/blob/925ab26fb4a6fab5d2ec780bc0b4c4e39295ee9b/app/Filament/Server/Resources/DatabaseResource.php#L124-L125 Example when mysql server is offline: `SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it`
OVERLORD added the 🟢 easy label 2026-02-05 17:34:30 +03:00
Author
Owner

@notAreYouScared commented on GitHub (Sep 4, 2025):

We currently do this for password rotation, but not for the database delete action

@notAreYouScared commented on GitHub (Sep 4, 2025): We currently do this for password rotation, but not for the database delete action
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel-pelican-dev#419