Advertisement
jarocki_art

server log

Jul 4th, 2019
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. Started POST "/admin/v1/testimonials" for ::1 at 2019-07-04 13:02:12 +0300
  2. Processing by Admin::TestimonialsController#create as JSON
  3. Parameters: {"name"=>"Иван", "patronymic"=>"Иванович", "surname"=>"Иванов", "userpic"=>"", "company"=>"ООО", "object_photo_1"=>#<ActionDispatch::Http::UploadedFile:0x000055c597b48040 @tempfile=#<Tempfile:/tmp/RackMultipart20190704-32049-1qeitch.jpg>, @original_filename="filename.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"object_photo_1\"; filename=\"Scan_20160802_153425.jpg\"\r\nContent-Type: image/jpeg\r\n">, "object_photo_2"=>"null", "object_photo_3"=>"null", "image_name"=>"filename.jpg", "video"=>"", "text"=>"Отзыв"}
  4. User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
  5. ↳ /home/username/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98
  6. JwtBlacklist Exists (0.1ms) SELECT 1 AS one FROM "jwt_blacklists" WHERE "jwt_blacklists"."jti" = $1 LIMIT $2 [["jti", "dcceb0ba-f7f5-4270-a816-cb14772eb361"], ["LIMIT", 1]]
  7. ↳ /home/username/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98
  8. Unpermitted parameters: :image_name, :format
  9. Completed 500 Internal Server Error in 27ms (ActiveRecord: 4.8ms)
  10.  
  11. ActiveSupport::MessageVerifier::InvalidSignature (ActiveSupport::MessageVerifier::InvalidSignature):
  12.  
  13. app/controllers/admin/testimonials_controller.rb:18:in `create'
  14.  
  15. Содержимое переменной params после вызова метода t_params:
  16. <ActionController::Parameters {"testimonial"=><ActionController::Parameters {"name"=>"Иван", "patronymic"=>"Иванович", "surname"=>"Иванов", "userpic"=>"", "company"=>"ООО", "object_photo_1"=>#<ActionDispatch::Http::UploadedFile:0x000055861ec0dfb0 @tempfile=#<Tempfile:/tmp/RackMultipart20190704-17814-1cayh7x.jpg>, @original_filename="Scan_20160802_153425.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"object_photo_1\"; filename=\"filename.jpg\"\r\nContent-Type: image/jpeg\r\n">, "object_photo_2"=>"null", "object_photo_3"=>"null", "video"=>"", "text"=>"Отзыв"} permitted: true>} permitted: false>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement