Domanda

I am having trouble saving a large file, using a model with the dragonfly extension 'image_accessor'.

We are trying to save the file to an Amazon S3 server, using fog and excon. On this save, we receive the error:

A Excon::Errors::Timeout occurred in batch_uploads#upload_file:

 write timeout reached
 excon (0.14.2) lib/excon/socket.rb:124:in `rescue in write'

I suspect that the error is related to this: https://github.com/markevans/dragonfly/issues/207 but I can't be totally sure.

Does anyone have any advice on how to move forward with this?

È stato utile?

Soluzione

It seems to be an Excon timeout. You can try to increase the Excon lib's default write_timeout setting.

Excon.defaults[:write_timeout] = 500
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top