filestack / filestack-ruby

Official Ruby SDK for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://www.filestack.com
Apache License 2.0
34 stars 27 forks source link

Storage provider error #15

Closed jlerpscher closed 7 years ago

jlerpscher commented 7 years ago

Hi,

I have an issue when I am trying to store an image.

filelink = FilestackFilelink.new('YHlpKd4RXS3BNt0y0Gci')
thumbnail = filelink.transform.resize(width: 100).rotate(deg: 'exif')
thumbnail.store
...

The error is:

NoMethodError: undefined method `split' for nil:NilClass

Error occur at the line 83 of filestack-ruby/lib/filestack/models/filestack_transform.rb

This is the response body I have:

#<Unirest::HttpResponse:0x007fde93542d78 @code=403, @headers={:server=>"nginx", :content_type=>"text/plain; charset=utf-8", :access_control_allow_headers=>"Content-Type, X-No-Stream", :access_control_allow_methods=>"GET", :access_control_allow_origin=>"*", :access_control_max_age=>"21600", :cache_control=>"private", :x_content_type_options=>"nosniff", :content_encoding=>"gzip", :via=>"1.1 varnish", :fastly_debug_digest=>"b04ab82bf004f764ddd4b01f5a4befd1107b6a951dc75a44b4c6b811a6456114", :content_length=>"78", :accept_ranges=>"bytes", :date=>"Sat, 26 Aug 2017 19:47:55 GMT", :age=>"0", :connection=>"keep-alive", :x_served_by=>"cache-iad2124-IAD, cache-lhr6331-LHR", :x_cache=>"HIT, MISS", :x_cache_hits=>"1, 0", :x_timer=>"S1503776875.483301,VS0,VE80", :vary=>"Accept-Encoding"}, @raw_body="storage provider error: Invalid Application (idx 0)\n", @body="storage provider error: Invalid Application (idx 0)\n">

It was ok few weeks ago.

Thank you for your help

jlerpscher commented 7 years ago

Sorry,

The image was not uploaded on the same account, this is why this error happen.