-
-
Notifications
You must be signed in to change notification settings - Fork 133
Open
Description
I have a rather fresh install of activestorage-openstack, which seems to build upon fog-openstack.
I've tried to upload a test jpg file to my Infomaniak s3 comp object storage, but I get this error:
Loading development environment (Rails 7.1.3.2)
irb(main):001* blob = ActiveStorage::Blob.create_and_upload!(
irb(main):002* io: File.open("./public/sleep.jpg", 'rb'),
irb(main):003* filename: "sleep.jpg",
irb(main):004* content_type: "image/jpg"
irb(main):005> )
TRANSACTION (0.0ms) begin transaction
ActiveStorage::Blob Create (0.3ms) INSERT INTO "active_storage_blobs" ("key", "filename", "content_type", "metadata", "service_name", "byte_size", "checksum", "created_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) RETURNING "id" [["key", "irdd44jxhg8zzh9ado2ogy61kzdj"], ["filename", "sleep.jpg"], ["content_type", "image/jpeg"], ["metadata", "{\"identified\":true}"], ["service_name", "infomaniak"], ["byte_size", 526621], ["checksum", "H3N/tmO1/TcKfCdnEyIOOQ=="], ["created_at", "2024-04-09 19:22:37.714505"]]
TRANSACTION (6.6ms) commit transaction
OpenStack Storage (9.7ms) Uploaded file to key: irdd44jxhg8zzh9ado2ogy61kzdj (checksum: H3N/tmO1/TcKfCdnEyIOOQ==)
/home/un/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/bundler/gems/fog-openstack-794aa8b36a06/lib/fog/openstack/auth/token.rb:17:in `build': undefined method `=~' for 3:Integer (NoMethodError)
It works when I use config.active_storage.service = :local but that's not the intention.
Copilot keeps telling me that I should fork your gem, rewrite it and try again.
I have already tried @chaadow's version but that has the same error
Please let me know if I can help
Metadata
Metadata
Assignees
Labels
No labels