mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
TypeError in InitiateBackupService.php #251
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @masterjanic on GitHub (Feb 2, 2025).
Current Behavior
When hitting the rate limit defined in the app config and trying to create another backup, a type error status 500 will be thrown instead of the correct rate limit error. (API)
Origin seems to be
431c1977e3/app/Services/Backups/InitiateBackupService.php (L87)Expected Behavior
Endpoint should throw the correct error.
Steps to Reproduce
Check defined rate limit for backup creation like
Create more backups than allowed. See Laravel logs and response message.
Panel Version
1.0.0-beta17
Wings Version
1.0.0-beta9
Games and/or Eggs Affected
No response
Docker Image
No response
Error Logs
https://paste.pelistuff.com/7AQs
Is there an existing issue for this?
@Lochnair commented on GitHub (Mar 19, 2025):
Just ran into something similar using the panel, when going past the default limit of 2 backups, I get:
Log excerpt
I tested wrapping getting the period from the config with intval:
Then when triggering the limit again, I instead get a 429 in the panel:
Too bad is doesn't show the message from the exception, but still a lot clearer what's going on with a 429
@rmartinoscar commented on GitHub (Mar 20, 2025):
Completed in https://github.com/pelican-dev/panel/pull/1132