Last active
August 29, 2015 14:13
-
-
Save mikeumus/1cf0f9e58215096f3ad8 to your computer and use it in GitHub Desktop.
RG - destroy all pics error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):004:0> PropertyPhoto.destroy_all | |
Excon::Errors::Forbidden: Expected(200) <=> Actual(403 Forbidden) | |
response => #<Excon::Response:0x007f9e34d12278 @data={:body=>"", :headers=>{"Content-Type"=>"application/xml; charset=UTF-8", "Content-Length"=>"197", "Date"=>"Fri, 09 Jan 2015 15:16:03 GMT", "Expires"=>"Fri, 09 Jan 2015 15:16:03 GMT", "Cache-Control"=>"private, max-age=0", "Server"=>"UploadServer (\"Built on Dec 19 2014 10:24:45 (1419013485)\")", "Alternate-Protocol"=>"443:quic,p=0.02"}, :status=>403, :remote_ip=>"74.125.228.10", :local_port=>19547, :local_address=>"172.18.203.242"}, @body="", @headers={"Content-Type"=>"application/xml; charset=UTF-8", "Content-Length"=>"197", "Date"=>"Fri, 09 Jan 2015 15:16:03 GMT", "Expires"=>"Fri, 09 Jan 2015 15:16:03 GMT", "Cache-Control"=>"private, max-age=0", "Server"=>"UploadServer (\"Built on Dec 19 2014 10:24:45 (1419013485)\")", "Alternate-Protocol"=>"443:quic,p=0.02"}, @status=403, @remote_ip="74.125.228.10", @local_port=19547, @local_address="172.18.203.242"> | |
from /app/vendor/bundle/ruby/2.1.0/gems/excon-0.36.0/lib/excon/middlewares/expects.rb:6:in `response_call' | |
from /app/vendor/bundle/ruby/2.1.0/gems/excon-0.36.0/lib/excon/middlewares/response_parser.rb:26:in `response_call' | |
from /app/vendor/bundle/ruby/2.1.0/gems/excon-0.36.0/lib/excon/connection.rb:402:in `response' | |
from /app/vendor/bundle/ruby/2.1.0/gems/excon-0.36.0/lib/excon/connection.rb:272:in `request' | |
from /app/vendor/bundle/ruby/2.1.0/gems/fog-core-1.22.0/lib/fog/core/connection.rb:56:in `request' | |
from /app/vendor/bundle/ruby/2.1.0/gems/fog-1.22.1/lib/fog/xml.rb:23:in `request' | |
from /app/vendor/bundle/ruby/2.1.0/gems/fog-1.22.1/lib/fog/google/storage.rb:296:in `request' | |
from /app/vendor/bundle/ruby/2.1.0/gems/fog-1.22.1/lib/fog/google/requests/storage/head_object.rb:40:in `head_object' | |
from /app/vendor/bundle/ruby/2.1.0/gems/fog-1.22.1/lib/fog/google/models/storage/files.rb:84:in `head' | |
from /app/vendor/bundle/ruby/2.1.0/gems/paperclip-3.5.4/lib/paperclip/storage/fog.rb:60:in `exists?' | |
from /app/vendor/bundle/ruby/2.1.0/gems/paperclip-3.5.4/lib/paperclip/attachment.rb:468:in `block in queue_all_for_delete' | |
from /app/vendor/bundle/ruby/2.1.0/gems/paperclip-3.5.4/lib/paperclip/attachment.rb:467:in `map' | |
from /app/vendor/bundle/ruby/2.1.0/gems/paperclip-3.5.4/lib/paperclip/attachment.rb:467:in `queue_all_for_delete' | |
from /app/vendor/bundle/ruby/2.1.0/gems/paperclip-3.5.4/lib/paperclip/has_attached_file.rb:83:in `block in add_active_record_callbacks' | |
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:438:in `instance_exec' | |
from /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/callbacks.rb:438:in `block in make_lambda' | |
... 9 levels... | |
from /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction' | |
from /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.4/lib/active_record/transactions.rb:208:in `transaction' | |
from /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.4/lib/active_record/transactions.rb:326:in `with_transaction_returning_status' | |
from /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.4/lib/active_record/transactions.rb:263:in `destroy' | |
from /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.4/lib/active_record/relation.rb:384:in `block in destroy_all' | |
from /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.4/lib/active_record/relation.rb:384:in `each' | |
from /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.4/lib/active_record/relation.rb:384:in `destroy_all' | |
from /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.4/lib/active_record/querying.rb:8:in `destroy_all' | |
from (irb):4 | |
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/commands/console.rb:90:in `start' | |
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/commands/console.rb:9:in `start' | |
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:69:in `console' | |
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/commands/commands_tasks.rb:40:in `run_command!' | |
from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/commands.rb:17:in `<top (required)>' | |
from bin/rails:4:in `require' | |
from bin/rails:4:in `<main>'irb(main):005:0> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment