Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Airbrake] [Development] undefined method `[]' for nil:NilClass #103

Open
doofdoofsf opened this issue Apr 6, 2022 · 0 comments
Open

[Airbrake] [Development] undefined method `[]' for nil:NilClass #103

doofdoofsf opened this issue Apr 6, 2022 · 0 comments
Labels

Comments

@doofdoofsf
Copy link
Owner

Airbrake error: #7252
Airbrake project: First project

Error type: NoMethodError
Error message: undefined method `[]' for nil:NilClass
Where: weather_station#index
Occurred at: Apr 06, 2022 15:23:02 UTC
First seen at: Apr 06, 2022 15:23:02 UTC
Occurrences: 0 (0 since last deploy on <no information>)
Severity: error

URL: http://localhost:3000/weather_station/index
File: /PROJECT_ROOT/app/models/holfuy.rb

Backtrace:

/PROJECT_ROOT/app/models/holfuy.rb:26:in station_data
/PROJECT_ROOT/app/models/holfuy.rb:6:in wind_gust
/PROJECT_ROOT/app/models/weather_service.rb:10:in observation
/PROJECT_ROOT/app/controllers/weather_station_controller.rb:86:in block in holfuy_observations
/PROJECT_ROOT/app/controllers/weather_station_controller.rb:86:in map
/PROJECT_ROOT/app/controllers/weather_station_controller.rb:86:in holfuy_observations
/PROJECT_ROOT/app/controllers/weather_station_controller.rb:50:in all_observations
/PROJECT_ROOT/app/controllers/weather_station_controller.rb:46:in clean_observations
/PROJECT_ROOT/app/controllers/weather_station_controller.rb:3:in index
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_controller/metal/basic_implicit_render.rb:6:in send_action
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/abstract_controller/base.rb:195:in process_action
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_controller/metal/rendering.rb:30:in process_action
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/abstract_controller/callbacks.rb:42:in block in process_action
/GEM_ROOT/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:135:in run_callbacks
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/abstract_controller/callbacks.rb:41:in process_action
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_controller/metal/rescue.rb:22:in process_action
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_controller/metal/instrumentation.rb:33:in block in process_action
/GEM_ROOT/gems/activesupport-6.0.3.2/lib/active_support/notifications.rb:180:in block in instrument
/GEM_ROOT/gems/activesupport-6.0.3.2/lib/active_support/notifications/instrumenter.rb:24:in instrument
/GEM_ROOT/gems/activesupport-6.0.3.2/lib/active_support/notifications.rb:180:in instrument
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_controller/metal/instrumentation.rb:32:in process_action
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_controller/metal/params_wrapper.rb:245:in process_action
/GEM_ROOT/gems/activerecord-6.0.3.2/lib/active_record/railties/controller_runtime.rb:27:in process_action
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/abstract_controller/base.rb:136:in process
/GEM_ROOT/gems/actionview-6.0.3.2/lib/action_view/rendering.rb:39:in process
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_controller/metal.rb:190:in dispatch
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_controller/metal.rb:254:in dispatch
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_dispatch/routing/route_set.rb:50:in dispatch
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_dispatch/routing/route_set.rb:33:in serve
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_dispatch/journey/router.rb:49:in block in serve
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_dispatch/journey/router.rb:32:in each
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_dispatch/journey/router.rb:32:in serve
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_dispatch/routing/route_set.rb:834:in call
/GEM_ROOT/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in call
/GEM_ROOT/gems/rack-2.2.3/lib/rack/etag.rb:27:in call
/GEM_ROOT/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in call
/GEM_ROOT/gems/rack-2.2.3/lib/rack/head.rb:12:in call
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_dispatch/http/content_security_policy.rb:18:in call
/GEM_ROOT/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in context
/GEM_ROOT/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in call
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_dispatch/middleware/cookies.rb:648:in call
/GEM_ROOT/gems/activerecord-6.0.3.2/lib/active_record/migration.rb:567:in call
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_dispatch/middleware/callbacks.rb:27:in block in call
/GEM_ROOT/gems/activesupport-6.0.3.2/lib/active_support/callbacks.rb:101:in run_callbacks
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_dispatch/middleware/callbacks.rb:26:in call
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_dispatch/middleware/executor.rb:14:in call
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_dispatch/middleware/actionable_exceptions.rb:17:in call
/GEM_ROOT/gems/airbrake-10.0.5/lib/airbrake/rack/middleware.rb:34:in call!
/GEM_ROOT/gems/airbrake-10.0.5/lib/airbrake/rack/middleware.rb:23:in call
/GEM_ROOT/gems/actionpack-6.0.3.2/lib/action_dispatch/middleware/debug_exceptions.rb:32:in call
...

Visit Airbrake error to view the full backtrace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant