{"action":"created","issue":{"url":"https://api.github.com/repos/cantino/huginn/issues/1156","labels_url":"https://api.github.com/repos/cantino/huginn/issues/1156/labels{/name}","comments_url":"https://api.github.com/repos/cantino/huginn/issues/1156/comments","events_url":"https://api.github.com/repos/cantino/huginn/issues/1156/events","html_url":"https://github.com/cantino/huginn/issues/1156","id":117765803,"number":1156,"title":"Error running weather agent","user":{"login":"northrup","id":11050,"avatar_url":"https://avatars.githubusercontent.com/u/11050?v=3","gravatar_id":"","url":"https://api.github.com/users/northrup","html_url":"https://github.com/northrup","followers_url":"https://api.github.com/users/northrup/followers","following_url":"https://api.github.com/users/northrup/following{/other_user}","gists_url":"https://api.github.com/users/northrup/gists{/gist_id}","starred_url":"https://api.github.com/users/northrup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/northrup/subscriptions","organizations_url":"https://api.github.com/users/northrup/orgs","repos_url":"https://api.github.com/users/northrup/repos","events_url":"https://api.github.com/users/northrup/events{/privacy}","received_events_url":"https://api.github.com/users/northrup/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-19T08:33:52Z","updated_at":"2015-11-19T17:05:45Z","closed_at":"2015-11-19T08:38:29Z","body":"I am getting the following error when I try to run any weather agents, with wunderground or forecastio, even after deleting the default SF Weather agent and creating a new one from scratch.\r\n```\r\n                        undefined method `[]' for nil:NilClass\r\n/home/huginn/huginn/app/models/agents/weather_agent.rb:110:in `forecastio'\r\n/home/huginn/huginn/app/models/agents/weather_agent.rb:118:in `model'\r\n/home/huginn/huginn/app/models/agents/weather_agent.rb:77:in `check'\r\n/home/huginn/huginn/app/jobs/agent_check_job.rb:7:in `perform'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.4/lib/active_job/execution.rb:32:in `block in perform_now'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:343:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/i18n-0.7.0/lib/i18n.rb:257:in `with_locale'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.4/lib/active_job/translation.rb:7:in `block (2 levels) in <module:Translation>'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:441:in `instance_exec'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:441:in `block in make_lambda'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:342:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:342:in `block in simple'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:497:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:497:in `block in around'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:343:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.4/lib/active_job/logging.rb:23:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.4/lib/active_job/logging.rb:23:in `block (4 levels) in <module:Logging>'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.4/lib/active_job/logging.rb:22:in `block (3 levels) in <module:Logging>'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.4/lib/active_job/logging.rb:43:in `block in tag_logger'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.4/lib/active_job/logging.rb:43:in `tag_logger'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.4/lib/active_job/logging.rb:19:in `block (2 levels) in <module:Logging>'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:441:in `instance_exec'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:441:in `block in make_lambda'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:342:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:342:in `block in simple'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:497:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:497:in `block in around'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_perform_callbacks'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.4/lib/active_job/execution.rb:31:in `perform_now'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.4/lib/active_job/execution.rb:21:in `execute'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.4/lib/active_job/queue_adapters/delayed_job_adapter.rb:34:in `perform'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:94:in `block in invoke_job'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/backend/base.rb:91:in `invoke_job'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block (2 levels) in run'\r\n/usr/local/lib/ruby/2.2.0/timeout.rb:88:in `block in timeout'\r\n/usr/local/lib/ruby/2.2.0/timeout.rb:98:in `call'\r\n/usr/local/lib/ruby/2.2.0/timeout.rb:98:in `timeout'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:204:in `block in run'\r\n/usr/local/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:203:in `run'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:280:in `block in reserve_and_run_one_job'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:280:in `reserve_and_run_one_job'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:187:in `block in work_off'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:186:in `times'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:186:in `work_off'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:150:in `block (4 levels) in start'\r\n/usr/local/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:149:in `block (3 levels) in start'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:148:in `block (2 levels) in start'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:147:in `loop'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:147:in `block in start'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/plugins/clear_locks.rb:7:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/plugins/clear_locks.rb:7:in `block (2 levels) in <class:ClearLocks>'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:79:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:79:in `block (2 levels) in add'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:61:in `block in initialize'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:79:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:79:in `block in add'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:66:in `execute'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/lifecycle.rb:40:in `run_callbacks'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/worker.rb:146:in `start'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/command.rb:124:in `run'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/command.rb:112:in `block in run_process'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/daemons-1.1.9/lib/daemons/application.rb:255:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/daemons-1.1.9/lib/daemons/application.rb:255:in `block in start_proc'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/daemons-1.1.9/lib/daemons/application.rb:264:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/daemons-1.1.9/lib/daemons/application.rb:264:in `start_proc'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/daemons-1.1.9/lib/daemons/application.rb:296:in `start'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/daemons-1.1.9/lib/daemons/controller.rb:73:in `run'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/daemons-1.1.9/lib/daemons.rb:197:in `block in run_proc'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/daemons-1.1.9/lib/daemons/cmdline.rb:109:in `call'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/daemons-1.1.9/lib/daemons/cmdline.rb:109:in `catch_exceptions'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/daemons-1.1.9/lib/daemons.rb:196:in `run_proc'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/command.rb:110:in `run_process'\r\n/home/huginn/huginn/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.0.6/lib/delayed/command.rb:86:in `daemonize'\r\nscript/delayed_job:5:in `<main>'\r\n```"},"comment":{"url":"https://api.github.com/repos/cantino/huginn/issues/comments/158120313","html_url":"https://github.com/cantino/huginn/issues/1156#issuecomment-158120313","issue_url":"https://api.github.com/repos/cantino/huginn/issues/1156","id":158120313,"user":{"login":"cantino","id":83835,"avatar_url":"https://avatars.githubusercontent.com/u/83835?v=3","gravatar_id":"","url":"https://api.github.com/users/cantino","html_url":"https://github.com/cantino","followers_url":"https://api.github.com/users/cantino/followers","following_url":"https://api.github.com/users/cantino/following{/other_user}","gists_url":"https://api.github.com/users/cantino/gists{/gist_id}","starred_url":"https://api.github.com/users/cantino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cantino/subscriptions","organizations_url":"https://api.github.com/users/cantino/orgs","repos_url":"https://api.github.com/users/cantino/repos","events_url":"https://api.github.com/users/cantino/events{/privacy}","received_events_url":"https://api.github.com/users/cantino/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T17:05:45Z","updated_at":"2015-11-19T17:05:45Z","body":"Glad you got it figured out! Is there anything that we should document to\nprevent this error in the future?\n\nOn Thursday, November 19, 2015, John Northrup <notifications@github.com>\nwrote:\n\n> user error [image: :disappointed:]\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/cantino/huginn/issues/1156#issuecomment-157989741>.\n>\n"}}