Unable to use Cloudflare R2's presigned url's for media transcoding output destination #11
-
Hi there! I've been trying to implement audio transcoding (wav -> mp3) using the transcode endpoint, but I receive the following error:
Essentially it gets stuck at 90% progress for a few minutes before showing this error. I've been able to successfully use AWS S3 and Digital Ocean Spaces to output to my destination directory but for some reason R2 has issues with however Dolby is uploading the audio files to the bucket. Was curious if anyone could provide insight on how the api is confirming that the file is uploaded? The docs say for this error:
Which sorta conflicts with what the error logs say. One says it errors since there are concurrent writes while the other claims that this url must be able to provide HEAD/GET to validate (which I'm not sure how that's possible with a put presigned url 🤔 ) Here's how I have implemented, nothing too special! I use NodeJS.
I configure my credentials for the NodeJS client like this
Just as a reminder, I got a different S3 compatible library (Digital Ocean Spaces) working with this method, so I'm wondering what's up with R2 that just doesn't work the same way. Thanks a lot for your time and any assistance here. It's really appreciated. EDIT: I should note that the file is actually written to my bucket but for some reason the API is attempting to confirm that the file has been written but cannot do so? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Each cloud storage provider does behave a little bit differently with respect to being able to verify success with storing a file using a pre-signed URL. Since this isn't one of the already documented service providers (S3, GCP Cloud Storage, and Azure Blob Storage), it might require a bit more investigation and/or involvement from the team to investigate. I'd suggest for this case, it might be worth submitting a support ticket if using Cloudflare R2 is a requirement for your project. |
Beta Was this translation helpful? Give feedback.
Each cloud storage provider does behave a little bit differently with respect to being able to verify success with storing a file using a pre-signed URL. Since this isn't one of the already documented service providers (S3, GCP Cloud Storage, and Azure Blob Storage), it might require a bit more investigation and/or involvement from the team to investigate.
I'd suggest for this case, it might be worth submitting a support ticket if using Cloudflare R2 is a requirement for your project.
https://support.dolby.io/