Spree 5 + Supabase + Railways

Hey everyone! I'm having an authentication issue while trying to configure Supabase S3 to store images for my Spree (Ruby on Rails) project. The exact error I'm getting is: "The request signature we calculated does not match the signature you provided. Check your key and signing method." I've already checked my credentials, the bucket region, and the system time, but the error persists. Has anyone else faced this issue? Can you help me with the correct Spree configuration to fix this signature error?
6 Replies
inder
inder2mo ago
I dont know about spree but in js sdk, we have to add forcePathStyle: true in config. Google says the equivalent in your case should be force_path_style: true
silentworks
silentworks2mo ago
Please show what your Spree config looks like for the s3 setup.
Nexlogin
NexloginOP2mo ago
supabase: service: supabase endpoint: <%= ENV['SUPABASE_STORAGE_ENDPOINT'] %> region: <%= ENV['SUPABASE_STORAGE_REGION'] %> bucket: <%= ENV['SUPABASE_BUCKET_NAME'] %> access_key_id: <%= ENV['SUPABASE_STORAGE_ACCESS_KEY_ID'] %> secret_access_key: <%= ENV['SUPABASE_STORAGE_SECRET_ACCESS_KEY'] %> force_path_style: true
silentworks
silentworks2mo ago
Has it worked since you tried what inder recommended?
Nexlogin
NexloginOP2mo ago
No :/
inder
inder2mo ago

Did you find this page helpful?