-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 BUG: r2 object put
with --file
not work
#6642
Comments
i cant even do multi part upload locally, looks like some issue locally |
Hi @shama265 Thanks for reporting this issue! I tried to reproduce the problem on my end, but it seems to be working fine. Could you please try running the command again with Let me know if you notice anything unusual in the debug output. |
Hi @edmundhung Thanks for your response. Additionally, I attempted to run with a newer Wrangler (3.78.7). A run is failed again and logged similar. (run with debug flag in 3.74.0, console)
(in 3.78.7)
|
Hi @shama265, Sorry, I’m still unable to pinpoint the issue exactly. It seems like a network problem, but it’s strange that Thanks for your patience! |
Hi @edmundhung , I tried to upload a same file with
|
I can reproduce it on Windows 11, here's my log: 🪵 Writing logs to "C:\Users\hash\AppData\Roaming\xdg.config\.wrangler\logs\wrangler-2024-09-30_20-00-44_173.log"
⛅️ wrangler 3.78.12
--------------------
No experimental flag store instantiated
Attempted to use flag "JSON_CONFIG_FILE" which has not been instantiated
Configuration file belonging to ⚡️ Pages ⚡️ project detected.
Creating object "[REDACT]" in bucket "assets".
X [ERROR] fetch failed
If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
√ Would you like to report this error to Cloudflare? ... yes
Sentry: Capturing exception TypeError: fetch failed
🪵 Logs were written to "C:\Users\hash\AppData\Roaming\xdg.config\.wrangler\logs\wrangler-2024-09-30_20-00-44_173.log" No complain about .env not found, because I do have a .env file. |
Hi @Master-Hash How about A few more things that I would love to know:
|
Hi @edmundhung I believe latest [email protected] doesn't solve this problem. Similar to @shama265, My node version is 23.0 and was 20.x lts (I forgot sorry), and yarn version is 4.5.1. I can confirm it's a problem only when using yarn pnp. I tried yarn pnpm mode and it WORKS, so I believe npm is not affacted. Thank you for your investigation! |
Hi @Master-Hash Thx so much for confirming <3. This will take a bit of digging around on our side to understand why yarn pnp is failing here. Will follow up here with more details once we have them |
Which Cloudflare product(s) does this pertain to?
R2
What version(s) of the tool(s) are you using?
3.74.0
What version of Node are you using?
v20.17.0
What operating system and version are you using?
Debian 12
Describe the Bug
Observed behavior
r2 object put
is failure, cause errorfetch failed
.The file is not uploaded to bucket.
Expected behavior
Upload to my bucket
Steps to reproduce
yarn wrangler r2 object put some-bucket/somefile.txt --file=somefile.txt
Appendix
Instead of using
--pipe
, upload is complete.Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
(shell)
(log)
(log, using
--pipe
)The text was updated successfully, but these errors were encountered: