spatie / flysystem-dropbox

A flysystem driver for Dropbox that uses the v2 API
https://freek.dev/734-dropbox-will-turn-off-v1-of-their-api-soon-its-time-to-update-your-php-application
MIT License
343 stars 50 forks source link

too many requests when uploading backup file #85

Closed malohtie closed 2 years ago

malohtie commented 2 years ago

Hi, We use dropbox adapter to backup our database using spatie laravel backup, we start noticing this error after our backup zip file surpassed 28 GB

Error:

Client error: POST https://content.dropboxapi.com/2/files/upload_session/append_v2 resulted in a 429 Too Many Requests response:
{"error_summary": "too_many_requests/..", "error": {"reason": {".tag": "too_many_requests"}, "retry_after": 15}}

Trace:

{
    "code": 429,
    "file": "/var/aa/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113",
    "trace": [
        "/var/aa/vendor/guzzlehttp/guzzle/src/Middleware.php:69",
        "/var/aa/vendor/guzzlehttp/promises/src/Promise.php:204",
        "/var/aa/vendor/guzzlehttp/promises/src/Promise.php:153",
        "/var/aa/vendor/guzzlehttp/promises/src/TaskQueue.php:48",
        "/var/aa/vendor/guzzlehttp/promises/src/Promise.php:248",
        "/var/aa/vendor/guzzlehttp/promises/src/Promise.php:224",
        "/var/aa/vendor/guzzlehttp/promises/src/Promise.php:269",
        "/var/aa/vendor/guzzlehttp/promises/src/Promise.php:226",
        "/var/aa/vendor/guzzlehttp/promises/src/Promise.php:62",
        "/var/aa/vendor/guzzlehttp/guzzle/src/Client.php:187",
        "/var/aa/vendor/guzzlehttp/guzzle/src/ClientTrait.php:95",
        "/var/aa/vendor/spatie/dropbox-api/src/Client.php:636",
        "/var/aa/vendor/spatie/dropbox-api/src/Client.php:534",
        "/var/aa/vendor/spatie/dropbox-api/src/Client.php:477",
        "/var/aa/vendor/spatie/dropbox-api/src/Client.php:445",
        "/var/aa/vendor/spatie/dropbox-api/src/Client.php:402",
        "/var/aa/vendor/spatie/flysystem-dropbox/src/DropboxAdapter.php:92",
        "/var/aa/vendor/league/flysystem/src/Filesystem.php:68",
        "/var/aa/vendor/spatie/laravel-backup/src/BackupDestination/BackupDestination.php:87",
        "/var/aa/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php:292",
         ...

Thanks

spatie-bot commented 2 years ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.