Skip to content

Instantly share code, notes, and snippets.

View OSP123's full-sized avatar

OSP123

  • UCLA Extension
  • Los Angeles, CA
View GitHub Profile
@OSP123
OSP123 / gist:9845962
Created March 29, 2014 00:34
Error when trying to batch edit point values
Started GET "/assets/client_wizard/jquery_ui/ui-icons_fff_256x240.png" for 127.0.0.1 at 2014-03-28 17:33:46 -0700
Served asset /client_wizard/jquery_ui/ui-icons_fff_256x240.png - 304 Not Modified (0ms)
Started GET "/client_wizard/open_dialog_for?dialog_name=batch_edit_cpv&_=1396053201482" for 127.0.0.1 at 2014-03-28 17:33:48 -0700
Processing by ClientWizard::DialogsController#open_dialog_for as JS
Parameters: {"dialog_name"=>"batch_edit_cpv", "_"=>"1396053201482"}
User Load (95.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 990895189 LIMIT 1
Rendered /Users/omarpatel/peer2/client_wizard/app/views/client_wizard/dialogs/dialog_partials/_points_list.html.erb (1.3ms)
Rendered /Users/omarpatel/peer2/client_wizard/app/views/client_wizard/dialogs/dialog_partials/_batch_edit_cpv.html.erb (4.8ms)
Completed 500 Internal Server Error in 714.9ms
ActionView::Template::Error (type: OAuthException, code: 190, error_subcode: 463, message: Error validating access token: Session has expired on Feb 24, 2014 3:27pm. The current time is Mar 28, 2014 3:56pm. [HTTP 400]):
31: <%= select_tag("linked_object[config_attributes][dev_app_num]", options_for_select(facebook_app_options("development"), config_attrs["dev_app_num"])) %>
32: <br/>
33: <%= label_tag "Page" %>
Started GET "/client_wizard/add_endpoint?campaign_id=35&_=1396048391838" for 127.0.0.1 at 2014-03-28 16:13:34 -0700
@OSP123
OSP123 / gist:9903715
Created March 31, 2014 22:23
Hashtag Error
ActionView::Template::Error (Called id for nil, which would mistakenly be 8 -- if you really wanted the id of nil, use object_id):
2: Enabled <%= f.check_box :enabled, :checked => true %>
3: <br />
4: <br />
5: <%= f.hidden_field :product_id, :value => current_product.id if @item.new_record? %>
6: <%= f.label :tag %>
7: <%= f.text_field :tag %>
8: <%= f.label :end_time %>
/home/ec2-user/.rvm/gems/ruby-2.0.0-p195/bundler/gems/client_wizard-4213f2ddc7f4/app/views/client_wizard/product_hashtags/_form.html.erb:5:in `__home_ec__user__rvm_gems_ruby_______p____bundler_gems_client_wizard_____f_ddc_f__app_views_client_wizard_product_hashtags__form_html_erb__1722830563017389882_77015120'
actionpack (3.2.16) lib/action_view/template.rb:145:in `block in render'
@OSP123
OSP123 / gist:9949042
Created April 3, 2014 06:06
Prize Errors
ERRORS:
universal_video_7_dc29 URL WARNING => alt_screenshot_url contains dummy value:
universal_video_8_717f URL WARNING => alt_screenshot_url contains dummy value:
universal_video_9_bbd3 URL WARNING => alt_screenshot_url contains dummy value:
universal_video_20 URL WARNING => alt_screenshot_url contains dummy value:
universal_video_21 URL WARNING => alt_screenshot_url contains dummy value:
universal_video_22 URL WARNING => alt_screenshot_url contains dummy value:
universal_video_23 URL WARNING => alt_screenshot_url contains dummy value:
universal_video_24 URL WARNING => alt_screenshot_url contains dummy value:
universal_prize_1163 RESCUE => Couldn't find Prize with id=8148
[ec2-user@ip-10-40-174-182 log]$ tail -n 300 wizard.log
SQL (1.8ms) SELECT `campaign_objects`.`linked_object_ids` FROM `campaign_objects` WHERE `campaign_objects`.`campaign_id` = 38 AND `campaign_objects`.`identifier_type` = 'endpoint'
CustomerConfiguration Load (7.4ms) SELECT `customer_configurations`.* FROM `customer_configurations` WHERE `customer_configurations`.`id` = 109812 LIMIT 1
CustomerConfiguration Load (4.6ms) SELECT `customer_configurations`.* FROM `customer_configurations` WHERE `customer_configurations`.`id` = 109813 LIMIT 1
CustomerConfiguration Load (2.9ms) SELECT `customer_configurations`.* FROM `customer_configurations` WHERE `customer_configurations`.`id` = 109814 LIMIT 1
(1.6ms) BEGIN
CustomerConfiguration Exists (1.8ms) SELECT 1 AS one FROM `customer_configurations` WHERE (`customer_configurations`.`style` = BINARY 'fb_tab' AND `customer_configurations`.`id` != 109812 AND `customer_configurations`.`product_id` = 1092) LIMIT 1
Product Load (4.9ms) SELECT `products`.
[ec2-user@ip-10-40-174-182 smartify_admin_pages]$ RAILS_ENV=wizard rake wizard:output[38]
/home/ec2-user/.rvm/gems/ruby-2.0.0-p195@smartify_admin/gems/actionpack-3.2.16/lib/action_dispatch/http/mime_type.rb:102: warning: already initialized constant Mime::GIF
/home/ec2-user/.rvm/gems/ruby-2.0.0-p195@smartify_admin/gems/actionpack-3.2.16/lib/action_dispatch/http/mime_type.rb:102: warning: previous definition of GIF was here
===========================================================================
CONFIG WIZARD OUTPUT
===========================================================================
More info: https://github.com/peer2/config_wizard
Look for errors in red text
customer: Cost Plus World Market
campaign: Mom in Paradise
[AWS S3 400 20.058344 0 retries] put_object(:acl=>:public_read,:bucket_name=>"peer2.demo.anthony",:content_length=>41393,:content_type=>"image/png",:data=>Paperclip::FileAdapter: open-uri20140415-1821-p16z1l,:key=>"system/icons/4c0869fd3305a51154e23a6baba7e5462e7db530a6102c0d35e49913a05c/original/open-uri20140415-1821-p16z1l.") AWS::S3::Errors::RequestTimeout Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.
cost_plus_world_market_prize_2112 RESCUE => Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.
Loading >> PrizeRankingObjects
processing object: cost_plus_world_market_prize_ranking_2527
ClientDslObject Load (6.7ms) SELECT `client_dsl_objects`.* FROM `client_dsl_objects` WHERE `client_dsl_objects`.`identifier` = 'cost_plus_world_market_prize_2112' LIMIT 1
ClientDslObject Load (5.7ms) SELECT `client_dsl_objects`.* FROM `client_dsl_object
RAILS_ENV=demo rake wizard:input["/Users/omarpatel/peer2/client_assets/config/cost_plus_world_market_output/mom_in_paradise/12_prizes.yml","Omar Patel"]
/Users/omarpatel/.rvm/gems/ruby-2.0.0-p195@sat/gems/actionpack-3.2.16/lib/action_dispatch/http/mime_type.rb:102: warning: already initialized constant Mime::GIF
/Users/omarpatel/.rvm/gems/ruby-2.0.0-p195@sat/gems/actionpack-3.2.16/lib/action_dispatch/http/mime_type.rb:102: warning: previous definition of GIF was here
Connecting to database specified by database.yml
Not loading Redshift for ARGV: ["wizard:input[/Users/omarpatel/peer2/client_assets/config/cost_plus_world_market_output/mom_in_paradise/12_prizes.yml,Omar Patel]"], for PROGRAM_NAME: /Users/omarpatel/.rvm/gems/ruby-2.0.0-p195@sat/bin/rake
MOPED: 23.22.214.51:27017 COMMAND database=admin command={:ismaster=>1} (193.2642ms)
===========================================================================
CONFIG WIZARD INPUT
===================================================
[10:18][~/peer2/thesharenetwork(master)]omarpatel $ RAILS_ENV=demo rake wizard:input["/Users/omarpatel/peer2/client_assets/config/cost_plus_world_market_output/mom_in_paradise/12_prizes.yml","Omar Patel"]
/Users/omarpatel/.rvm/gems/ruby-2.0.0-p195@sat/gems/actionpack-3.2.16/lib/action_dispatch/http/mime_type.rb:102: warning: already initialized constant Mime::GIF
/Users/omarpatel/.rvm/gems/ruby-2.0.0-p195@sat/gems/actionpack-3.2.16/lib/action_dispatch/http/mime_type.rb:102: warning: previous definition of GIF was here
Connecting to database specified by database.yml
Not loading Redshift for ARGV: ["wizard:input[/Users/omarpatel/peer2/client_assets/config/cost_plus_world_market_output/mom_in_paradise/12_prizes.yml,Omar Patel]"], for PROGRAM_NAME: /Users/omarpatel/.rvm/gems/ruby-2.0.0-p195@sat/bin/rake
MOPED: 23.22.214.51:27017 COMMAND database=admin command={:ismaster=>1} (179.4870ms)
===========================================================================
CONFIG WIZARD INPUT
@OSP123
OSP123 / gist:11262532
Created April 24, 2014 17:24
Question Options
QuestionOptionObjects:
- QuestionOption:
identifier: universal_question_option_2689
attributes:
value: Definitely will buy
is_default: true
is_correct_answer: false
TYPE___ID_FROM_IDENTIFIER___question_id: universal_question_466
- QuestionOption:
identifier: universal_question_option_2690