Cloudflare R2 - Aws::S3::Errors::NoSuchKey (The specified key does not exist.) #700
-
Hello, I am having an issue when uploading to R2 object storage. I tried using S3, which works well, but I need to set up R2. Here is my configuration: shrine.rb: Shrine.storages = { Shrine.plugin :activerecord Error: Aws::S3::Errors::NoSuchKey (The specified key does not exist.) The problem is that I can upload photos to the cache, but when derivatives are created, I think the process fails during the move from the cache to the regular destination. I cannot resolve the issue. Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Could you post a minimal self-contained script that reproduces the error with Cloudflare R2? You can use the following as a template – https://github.com/shrinerb/shrine/blob/master/SELF_CONTAINED_EXAMPLE.md#appendix-b-activerecord-template |
Beta Was this translation helpful? Give feedback.
Finally, I found a mistake in my endpoint URL configuration. I had also included the bucket name in the URL.