Closed baileyatwork closed 4 years ago
Is this intermittent behavior? Do some of the files make it to your bucket?
This was intermittent when I opened this bug. But right now, it seems like it always fails. I also want to add that auto-copying works, and when I have it turned on, the files do get copied automatically to my S3 bucket when uploaded. However, that might not be the workflow that we want to go with.
We got to the bottom of this and this is not a bug after all.
Turns out that target bucket settings that deny creation of new objects with public ACL are enforced here.
So, either relax bucket settings to allow new public objects or send additional make_public=false
param.
Describe the bug
client.copyFile(cdnUrl, storageName)
sometimes returns "successfully" (see #6. Yes, in this case, that error is still considered a successful call), but, more often than liked, it would return the following exception:But there's no code changes nor bucket policy changes. Also, I can see the file via the Uploadcare CDN link.
In addition, auto-copying works, and I can see the images in my S3 bucket when I upload an image with that option turned on.
client.copyFile("https://ucarecdn.com/78c72b16-e92c-4fd1-9a68-4c487f85af77/-/sharp/15/", "my-storage-name"); or client.copyFile("78c72b16-e92c-4fd1-9a68-4c487f85af77", "my-storage-name");
Expected behavior
Return the error in #6 , which at least indicates that the call went through.
Code / screenshots
Environment