Ruby error when uploading image: HTTP::CookieJar::AbstractStore:Class
I'm getting an obscure error on occasion when uploading an image to Cloudinary. I send a bunch of images and most seem to work fine, but I got this error:
```
/mnt/task/bundle/ruby/2.2.0/gems/http-cookie-1.0.3/lib/http/cookie_jar.rb:38:in `get_impl': undefined method `implementation' for HTTP::CookieJar::AbstractStore:Class (NoMethodError) from /mnt/task/bundle/ruby/2.2.0/gems/http-cookie-1.0.3/lib/http/cookie_jar.rb:74:in `initialize' from /mnt/task/bundle/ruby/2.2.0/gems/rest-client-2.0.0/lib/restclient/request.rb:391:in `new' from /mnt/task/bundle/ruby/2.2.0/gems/rest-client-2.0.0/lib/restclient/request.rb:391:in `process_cookie_args!' from /mnt/task/bundle/ruby/2.2.0/gems/rest-client-2.0.0/lib/restclient/request.rb:136:in `initialize' from /mnt/task/bundle/ruby/2.2.0/gems/rest-client-2.0.0/lib/restclient/request.rb:52:in `new' from /mnt/task/bundle/ruby/2.2.0/gems/rest-client-2.0.0/lib/restclient/request.rb:52:in `execute' from /mnt/task/bundle/ruby/2.2.0/gems/cloudinary-1.1.4/lib/cloudinary/uploader.rb:288:in `call_api' from /mnt/task/bundle/ruby/2.2.0/gems/cloudinary-1.1.4/lib/cloudinary/uploader.rb:68:in `upload' from /mnt/task/repositories/image_repository.rb:93:in `upload_image' from /mnt/task/processor/image_uploader.rb:113:in `upload_image' from /mnt/task/processor/image_uploader.rb:46:in `block in run' from /mnt/task/lib/threader.rb:21:in `block (2 levels) in process'
```
Note: this is running in a docker container via Iron.IO and the `image_uploader` and `image_repository` classes are my own. The `upload_image` is where the actual Cloudinary call happens.
I'm using Ruby 2.2.3 and Cloudinary 1.1.4
I welcome any thoughts/suggestions.
-Dan
-
Hi Dan,
Can you please elaborate on how you're performing the upload? Are you using our GEM? can you please share your upload code?
Please note that if you're using https://github.com/sparklemotion/http-cookie for the upload it's a GEM is hasn't been maintained for a while now (last commit was on Dec 9, 2016).
Post is closed for comments.
Comments
1 comment