You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Active Model Serializer conflicts with Active storage while streaming active storage blobs
I want to download all the attachments by streaming them using ActionController:: Live. It's working fine if I remove gem active_model_serializers', '0.9.2'. It halts the server and I have to restart it.
Steps to reproduce
Take any model with an attachment.
Here is my model
Started POST "/download"for ::1 at 2020-07-20 11:46:07 +0530
Processing by ZipStreamingController#download as HTML
Parameters: {"authenticity_token"=>"q93Vle1buS1EPTmqqsBlm8izATFmKa+9TscfWO6HNflOqzSou1+hReG67zpFBe/5uPa8CwahZJOzQeK+9tkVXA=="}
Model Load (0.9ms) SELECT "models".* FROM "models"
↳ app/controllers/zip_streaming_controller.rb:19
ActiveStorage::Attachment Load (1.1ms) SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 [["record_id", 5], ["record_type", "Model"], ["name", "image"]]
↳ app/controllers/zip_streaming_controller.rb:20
ActiveStorage::Blob Load (0.6ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]]
↳ app/controllers/zip_streaming_controller.rb:21
Active Model Serializer conflicts with Active storage while streaming active storage blobs
I want to download all the attachments by streaming them using
ActionController:: Live
. It's working fine if I remove gemactive_model_serializers', '0.9.2'
. It halts the server and I have to restart it.Steps to reproduce
Here is my model
like below
Environment
active_model_serializers', '0.9.2'
OS Type & Version:
Application: Rails
Backtrace
Gemfile.lock
The text was updated successfully, but these errors were encountered: