Replies: 2 comments 9 replies
-
Hey @tacman 👋 I've seen someone mentioning a similar "idle timeout" issue a while back: #46 (comment). This was before I implemented PSR changes (to use your own HTTP client). I suspect it might have to due with the (large) file size. How large are the files you are trying to upload? If you have a small snippet of a reproducable example, I can try to reproduce it myself. Anyway, as mentioned in the before-mentioned issue, you could try adding "timeout" options to your HTTP client. Specifically for Symfony, if you are using the
framework:
http_client:
default_options:
retry_failed: true
http_version: '2.0'
timeout: 10
max_duration: 150 https://symfony.com/doc/current/http_client.html#dealing-with-network-timeouts |
Beta Was this translation helpful? Give feedback.
-
Thanks. Indeed, today it's working better. I think bunny itself may have been having a problem. In the debugging process though, it got me wondering about the zone name, path, filename separation. For my bundle, I'm refactoring it so that it's more natural to put the path and filename into one. bin/console bunny:download data/myfile.zip
# downloads to data/myfile.zip, default zone is configured in the environment, along with the API keys
bin/console bunny:download storage/myfile.sav data/myfile.zip --zone=backups Since your library is a wrapper to the bunny API, which requires the path and filename to be separate, I thought I'd ask if you already had utilities (or an interest in having them) that splits a path into the components. Someday I'd like to support URL to bunny, e.g. bin/console bunny:upload https://example.com/data.zip example.com/ --zone=websites |
Beta Was this translation helpful? Give feedback.
-
I have a script that used to work that uploads files to bunny. It now gives an "idle timeout" error. I don't think I've changed anything, the script itself it quite simply, pretty much cut and paste from the upload documentation here.
It fails on line 106 of BunnyClient.php. Downloading works fine, and I can upload manually via the dashboard.
It isn't authentication, as uploading with an incorrect password fails with authentication error.
Any ideas how to debug this?
Thx.
Beta Was this translation helpful? Give feedback.
All reactions