Skip to content

Instantly share code, notes, and snippets.

View adam-phillipps's full-sized avatar

Adam adam-phillipps

  • NGage
  • Salt Lake City, UT.
View GitHub Profile
@adam-phillipps
adam-phillipps / 2
Last active September 5, 2016 21:31
(byebug) puts error
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.4.0.RELEASE)
[53126aed-fa6a-4fe1-9ae4-8d78e8588c85] ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
[53126aed-fa6a-4fe1-9ae4-8d78e8588c85] Processing by PostGrades::PostGradesController#post_grades_launch as HTML
[53126aed-fa6a-4fe1-9ae4-8d78e8588c85] Parameters: {"oauth_consumer_key"=>"1", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1472575490", "oauth_nonce"=>"EutJkDtDN4CDH8sjHeQyjBeFXEDbLdc0RxEOce7AA4", "oauth_version"=>"1.0", "context_id"=>"d8cf79fc920d29e15a25e8ffb7175d6ad6626963", "context_label"=>"yo", "context_title"=>"yo", "custom_account_id"=>"3", "custom_api_url"=>"http://locahost", "custom_canvas_enrollment_state"=>"active", "custom_common_css_url"=>"http://canvas.dev:3000/dist/brandable_css/new_styles_normal_contrast/bundles/common-29c1242e6b.css", "custom_course_id"=>"100", "custom_high_contrast"=>"false", "custom_user_id"=>"1", "ext_roles"=>"urn:lti:instrole:ims/lis/Administrator,urn:lti:instrole:ims/lis/Instructor,urn:lti:role:ims/lis/Ins
# /etc/init/runCrawlBot.conf
description "This job calls the Neuron/Bot/Whatever script"
author "Adam Phillipps"
start on runlevel [2345]
script
exec bash -c '/home/ubuntu/runCrawlBot &> /home/ubuntu/crawlBot.log'
end script
# this calls the next script below
Status/Timestamp/Runtime: FAILED /2016-08-15 20:33:06 UTC/
Message: SQLite3::SQLException: no such column: courses.course.sourced_id
Response: /Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.11/lib/sqlite3/database.rb:91:in `initialize'
/Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.11/lib/sqlite3/database.rb:91:in `new'
/Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.11/lib/sqlite3/database.rb:91:in `prepare'
/Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.11/lib/sqlite3/database.rb:266:in `query'
/Users/adam/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/sequel-4.31.0/lib/sequel/adapters/sqlite.rb:187:in `block (2 levels) in _execute'
{"productId"=>2298, "title"=>"Super Soft Solid Deep Pocket Easy-Care Sheet Set with Oversize Flat"}
Easy ==>> 1
Oversize ==>> 7
Bath ==>> 1
Easy-care ==>> 1
Brand:Unbranded, ==>> 1
Ever‎ ==>> 1
Super ==>> 9
Deep-Pocket ==>> 1
King ==>> 1
account: Efforts University
category: Timeout::Error
created at: 2016-06-29 17:11:11 -0600
request context id: 63e9acf2-8e00-4084-b0c1-aac00a4ad150
HTTP_HOST: canvas.dev:3000
PATH_INFO: /api/sis/courses/180/assignments
QUERY_STRING: ?
REMOTE_ADDR: 127.0.0.1
REQUEST_METHOD: GET
REQUEST_PATH: /api/sis/courses/180/assignments
Invalid request: Invalid HTTP format, parsing fails.
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/request.rb:84:in `execute'
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/request.rb:84:in `parse'
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb:39:in `receive_data'
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.4/lib/eventmachine.rb:187:in `run_machine'
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.4/lib/eventmachine.rb:187:in `run'
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/backends/base.rb:73:in `start'
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/server.rb:162:in `start'
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/rack-1.5.4/lib/rack/handler/thin.rb:16:in `run'
/Users/adam/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/rack-1.5.4/lib/rack/server.r
[43, 52] in /Users/adam/code/bots/bot_maker.rb
43: adjusted_ratio == 0 ? 1 : adjusted_ratio
44: end
45:
46: def run_program(desired_instance_count)
47: byebug
=> 48: ec2.run_instances(instance_config(desired_instance_count))
49: poll
50: end
51:
Adam Phillipps: I had access and was working on a script, yesterday. I'd appreciate it if this were moved to a higher priority because it's blocking me from getting any work done.
http://screencast.com/t/zg1db9pKwZlu
Here's the steps I've taken:
- disconnect and reconnect vpn
- refresh browser
- hard refresh browser
- logged in via gmail ([email protected] )
- logged out -> log in when prompted
- incognito and private browser ( chrome, firefox ) 6/14/2016 11:40:03 PM -06:00
---Put request response---
Body: {"title"=>"Look for this new title on the assignment with that line item id", "assignDate"=>"2013-08-22T00:00:00-04:00", "dueDate"=>"2013-08-26T00:00:00-04:00", "category"=>{"href"=>"https://test.wazzlesolutions.com/OneRoster/Gradebook/learningdata/v1/categories/2c70aada-e7df-4a79-8f5c-a453756fc065", "sourceId"=>"2c70aada-e7df-4a79-8f5c-a453756fc065", "type"=>"category"}, "class"=>{"href"=>"https://test.wazzlesolutions.com/OneRoster/Gradebook/learningdata/v1/classes/538d10fe-42fb-438c-98a9-1b9e1d262619", "sourceId"=>"538d10fe-42fb-438c-98a9-1b9e1d262619", "type"=>"class"}, "scoringScale"=>{"href"=>"https://test.wazzlesolutions.com/OneRoster/Gradebook/learningdata/v1/scales/062ab124-acdf-4343-b62a-8db7d4181ad8", "sourceId"=>"062ab124-acdf-4343-b62a-8db7d4181ad8", "type"=>"scoringScale"}, "resultValue"=>{"min"=>0.0, "max"=>1000.0}, "sourceId"=>"00000000-0000-0000-0000-000000000000", "status"=>"active", "dateLastModified"=>"0001-01-01T00:00:00"}
Status code: 200
---Put request