{"action":"created","issue":{"url":"https://api.github.com/repos/drapergeek/bigben/issues/5","repository_url":"https://api.github.com/repos/drapergeek/bigben","labels_url":"https://api.github.com/repos/drapergeek/bigben/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/drapergeek/bigben/issues/5/comments","events_url":"https://api.github.com/repos/drapergeek/bigben/issues/5/events","html_url":"https://github.com/drapergeek/bigben/pull/5","id":136946357,"number":5,"title":"Parses json before attempting to do things","user":{"login":"jtslear","id":1965521,"avatar_url":"https://avatars.githubusercontent.com/u/1965521?v=3","gravatar_id":"","url":"https://api.github.com/users/jtslear","html_url":"https://github.com/jtslear","followers_url":"https://api.github.com/users/jtslear/followers","following_url":"https://api.github.com/users/jtslear/following{/other_user}","gists_url":"https://api.github.com/users/jtslear/gists{/gist_id}","starred_url":"https://api.github.com/users/jtslear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtslear/subscriptions","organizations_url":"https://api.github.com/users/jtslear/orgs","repos_url":"https://api.github.com/users/jtslear/repos","events_url":"https://api.github.com/users/jtslear/events{/privacy}","received_events_url":"https://api.github.com/users/jtslear/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-27T17:46:05Z","updated_at":"2016-03-03T21:43:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/drapergeek/bigben/pulls/5","html_url":"https://github.com/drapergeek/bigben/pull/5","diff_url":"https://github.com/drapergeek/bigben/pull/5.diff","patch_url":"https://github.com/drapergeek/bigben/pull/5.patch"},"body":"* addresses #4 "},"comment":{"url":"https://api.github.com/repos/drapergeek/bigben/issues/comments/191977058","html_url":"https://github.com/drapergeek/bigben/pull/5#issuecomment-191977058","issue_url":"https://api.github.com/repos/drapergeek/bigben/issues/5","id":191977058,"user":{"login":"drapergeek","id":89965,"avatar_url":"https://avatars.githubusercontent.com/u/89965?v=3","gravatar_id":"","url":"https://api.github.com/users/drapergeek","html_url":"https://github.com/drapergeek","followers_url":"https://api.github.com/users/drapergeek/followers","following_url":"https://api.github.com/users/drapergeek/following{/other_user}","gists_url":"https://api.github.com/users/drapergeek/gists{/gist_id}","starred_url":"https://api.github.com/users/drapergeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drapergeek/subscriptions","organizations_url":"https://api.github.com/users/drapergeek/orgs","repos_url":"https://api.github.com/users/drapergeek/repos","events_url":"https://api.github.com/users/drapergeek/events{/privacy}","received_events_url":"https://api.github.com/users/drapergeek/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T21:43:50Z","updated_at":"2016-03-03T21:43:50Z","body":"Alright, tossed this up and ran it and this is the new output:\r\n\r\n```\r\n[debug] Processing by Bigben.WebhookController.create/2\r\n  Parameters: %{\"payload\" => \"{\\\"id\\\":113514168,\\\"repository\\\":{\\\"id\\\":1294851,\\\"name\\\":\\\"findit\\\",\\\"owner_name\\\":\\\"drapergeek\\\",\\\"url\\\":\\\"\\\"},\\\"number\\\":\\\"86\\\",\\\"config\\\":{\\\"sudo\\\":false,\\\"before_script\\\":[\\\"cp .sample.env .env\\\",\\\"bundle exec rake db:create\\\",\\\"bundle exec rake db:schema:load\\\"],\\\"cache\\\":\\\"bundler\\\",\\\"language\\\":\\\"ruby\\\",\\\"rvm\\\":[\\\"2.0.0\\\"],\\\"env\\\":[\\\"rspec spec/models\\\",\\\"rspec spec/features\\\"],\\\"notifications\\\":{\\\"webhooks\\\":\\\"https://ab4c63.ngrok.com/webhook\\\"},\\\".result\\\":\\\"configured\\\"},\\\"status\\\":0,\\\"result\\\":0,\\\"status_message\\\":\\\"Passed\\\",\\\"result_message\\\":\\\"Passed\\\",\\\"started_at\\\":\\\"2016-03-03T21:42:03Z\\\",\\\"finished_at\\\":\\\"2016-03-03T21:43:16Z\\\",\\\"duration\\\":140,\\\"build_url\\\":\\\"https://travis-ci.org/drapergeek/findit/builds/113514168\\\",\\\"commit_id\\\":32086634,\\\"commit\\\":\\\"c7a582a9f4017b06d04b96d0c7bf86a123835f48\\\",\\\"base_commit\\\":null,\\\"head_commit\\\":null,\\\"branch\\\":\\\"jd-try-to-add-multiple-jobs\\\",\\\"message\\\":\\\"Ngrok it up\\\",\\\"compare_url\\\":\\\"https://github.com/drapergeek/findit/compare/9d107c0a3dd4...c7a582a9f401\\\",\\\"committed_at\\\":\\\"2016-03-03T21:41:23Z\\\",\\\"author_name\\\":\\\"Jason Draper\\\",\\\"author_email\\\":\\\"jason@drapergeek.com\\\",\\\"committer_name\\\":\\\"Jason Draper\\\",\\\"committer_email\\\":\\\"jason@drapergeek.com\\\",\\\"matrix\\\":[{\\\"id\\\":113514169,\\\"repository_id\\\":1294851,\\\"parent_id\\\":113514168,\\\"number\\\":\\\"86.1\\\",\\\"state\\\":\\\"finished\\\",\\\"config\\\":{\\\"sudo\\\":false,\\\"before_script\\\":[\\\"cp .sample.env .env\\\",\\\"bundle exec rake db:create\\\",\\\"bundle exec rake db:schema:load\\\"],\\\"cache\\\":\\\"bundler\\\",\\\"language\\\":\\\"ruby\\\",\\\"rvm\\\":\\\"2.0.0\\\",\\\"env\\\":[\\\"rspec spec/models\\\"],\\\"notifications\\\":{\\\"webhooks\\\":\\\"https://ab4c63.ngrok.com/webhook\\\"},\\\".result\\\":\\\"configured\\\",\\\"group\\\":\\\"stable\\\",\\\"dist\\\":\\\"precise\\\",\\\"os\\\":\\\"linux\\\"},\\\"status\\\":0,\\\"result\\\":0,\\\"commit\\\":\\\"c7a582a9f4017b06d04b96d0c7bf86a123835f48\\\",\\\"branch\\\":\\\"jd-try-to-add-multiple-jobs\\\",\\\"message\\\":\\\"Ngrok it up\\\",\\\"compare_url\\\":\\\"https://github.com/drapergeek/findit/compare/9d107c0a3dd4...c7a582a9f401\\\",\\\"started_at\\\":\\\"2016-03-03T21:42:03Z\\\",\\\"finished_at\\\":\\\"2016-03-03T21:43:10Z\\\",\\\"committed_at\\\":\\\"2016-03-03T21:41:23Z\\\",\\\"author_name\\\":\\\"Jason Draper\\\",\\\"author_email\\\":\\\"jason@drapergeek.com\\\",\\\"committer_name\\\":\\\"Jason Draper\\\",\\\"committer_email\\\":\\\"jason@drapergeek.com\\\",\\\"allow_failure\\\":false},{\\\"id\\\":113514170,\\\"repository_id\\\":1294851,\\\"parent_id\\\":113514168,\\\"number\\\":\\\"86.2\\\",\\\"state\\\":\\\"finished\\\",\\\"config\\\":{\\\"sudo\\\":false,\\\"before_script\\\":[\\\"cp .sample.env .env\\\",\\\"bundle exec rake db:create\\\",\\\"bundle exec rake db:schema:load\\\"],\\\"cache\\\":\\\"bundler\\\",\\\"language\\\":\\\"ruby\\\",\\\"rvm\\\":\\\"2.0.0\\\",\\\"env\\\":[\\\"rspec spec/features\\\"],\\\"notifications\\\":{\\\"webhooks\\\":\\\"https://ab4c63.ngrok.com/webhook\\\"},\\\".result\\\":\\\"configured\\\",\\\"group\\\":\\\"stable\\\",\\\"dist\\\":\\\"precise\\\",\\\"os\\\":\\\"linux\\\"},\\\"status\\\":0,\\\"result\\\":0,\\\"commit\\\":\\\"c7a582a9f4017b06d04b96d0c7bf86a123835f48\\\",\\\"branch\\\":\\\"jd-try-to-add-multiple-jobs\\\",\\\"message\\\":\\\"Ngrok it up\\\",\\\"compare_url\\\":\\\"https://github.com/drapergeek/findit/compare/9d107c0a3dd4...c7a582a9f401\\\",\\\"started_at\\\":\\\"2016-03-03T21:42:03Z\\\",\\\"finished_at\\\":\\\"2016-03-03T21:43:16Z\\\",\\\"committed_at\\\":\\\"2016-03-03T21:41:23Z\\\",\\\"author_name\\\":\\\"Jason Draper\\\",\\\"author_email\\\":\\\"jason@drapergeek.com\\\",\\\"committer_name\\\":\\\"Jason Draper\\\",\\\"committer_email\\\":\\\"jason@drapergeek.com\\\",\\\"allow_failure\\\":false}],\\\"type\\\":\\\"push\\\",\\\"state\\\":\\\"passed\\\",\\\"pull_request\\\":false,\\\"pull_request_number\\\":null,\\\"pull_request_title\\\":null,\\\"tag\\\":null}\"}\r\n  Pipelines: []\r\n[debug] SELECT b0.\"id\", b0.\"name\", b0.\"inserted_at\", b0.\"updated_at\" FROM \"branches\" AS b0 WHERE (b0.\"name\" = $1) [\"jd-try-to-add-multiple-jobs\"] OK query=105.9ms queue=30.6ms\r\n[debug] BEGIN [] OK query=0.4ms\r\n[debug] INSERT INTO \"branches\" (\"inserted_at\", \"updated_at\", \"name\") VALUES ($1, $2, $3) RETURNING \"id\" [{{2016, 3, 3}, {21, 43, 17, 0}}, {{2016, 3, 3}, {21, 43, 17, 0}}, \"jd-try-to-add-multiple-jobs\"] OK query=1.2ms\r\n[debug] COMMIT [] OK query=0.5ms\r\n[error] #PID<0.409.0> running Bigben.Endpoint terminated\r\nServer: ab4c63.ngrok.com:80 (http)\r\nRequest: POST /webhook\r\n** (exit) an exception was raised:\r\n    ** (ArgumentError) argument error\r\n        :erlang.bit_size(113514168)\r\n        (bigben) lib/travis/url_builder.ex:7: Bigben.Travis.UrlBuilder.build_url/1\r\n        (bigben) lib/travis/total_time_calculator.ex:14: Bigben.Travis.TotalTimeCalculator.find_jobs/2\r\n        (bigben) lib/travis/total_time_calculator.ex:8: Bigben.Travis.TotalTimeCalculator.calculate_total_time/1\r\n        (bigben) web/models/build_status_updater.ex:18: Bigben.BuildStatusUpdater.add_total_time/1\r\n        (bigben) web/models/build_status_updater.ex:11: Bigben.BuildStatusUpdater.update/1\r\n        (bigben) web/controllers/webhook_controller.ex:9: Bigben.WebhookController.create/2\r\n        (bigben) web/controllers/webhook_controller.ex:1: Bigben.WebhookController.action/2\r\n        (bigben) web/controllers/webhook_controller.ex:1: Bigben.WebhookController.phoenix_controller_pipeline/2\r\n        (bigben) lib/phoenix/router.ex:261: Bigben.Router.dispatch/2\r\n        (bigben) web/router.ex:1: Bigben.Router.do_call/2\r\n        (bigben) lib/plug/error_handler.ex:63: Bigben.Router.call/2\r\n        (bigben) lib/bigben/endpoint.ex:1: Bigben.Endpoint.phoenix_pipeline/1\r\n        (bigben) lib/plug/debugger.ex:93: Bigben.Endpoint.\"call (overridable 3)\"/2\r\n        (bigben) lib/phoenix/endpoint/render_errors.ex:34: Bigben.Endpoint.call/2\r\n        (plug) lib/plug/adapters/cowboy/handler.ex:15: Plug.Adapters.Cowboy.Handler.upgrade/4\r\n        (cowboy) src/cowboy_protocol.erl:442: :cowboy_protocol.execute/4\r\n\r\n\r\n```"}}