Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Bug in one of the award presenters #32

Closed
awseward opened this issue Apr 19, 2021 · 0 comments · Fixed by #33
Closed

Bug in one of the award presenters #32

awseward opened this issue Apr 19, 2021 · 0 comments · Fixed by #33

Comments

@awseward
Copy link
Owner

Error details:

2021-04-19T20:58:10.440698+00:00 app[web.1]: 2021-04-19 20:58:10 - NoMethodError - undefined method `from' for #<Point … >
2021-04-19T20:58:10.440701+00:00 app[web.1]: Did you mean?  from_id:
2021-04-19T20:58:10.440702+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/activemodel-6.1.2.1/lib/active_model/attribute_methods.rb:469:in `method_missing'
2021-04-19T20:58:10.440705+00:00 app[web.1]: /app/lib/slack/presenters/award_announcement.rb:45:in `render'
2021-04-19T20:58:10.440706+00:00 app[web.1]: /app/lib/slack/presenters/award_announcement.rb:162:in `random'
2021-04-19T20:58:10.440706+00:00 app[web.1]: /app/lib/slack/presenters.rb:3:in `award_announcement'
2021-04-19T20:58:10.440707+00:00 app[web.1]: /app/app.rb:92:in `block in <class:App>'
2021-04-19T20:58:10.440708+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1675:in `call'
2021-04-19T20:58:10.440709+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1675:in `block in compile!'
2021-04-19T20:58:10.440709+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1013:in `block (3 levels) in route!'
2021-04-19T20:58:10.440710+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1032:in `route_eval'
2021-04-19T20:58:10.440710+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1013:in `block (2 levels) in route!'
2021-04-19T20:58:10.440710+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1061:in `block in process_route'
2021-04-19T20:58:10.440711+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1059:in `catch'
2021-04-19T20:58:10.440711+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1059:in `process_route'
2021-04-19T20:58:10.440712+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1011:in `block in route!'
2021-04-19T20:58:10.440712+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1008:in `each'
2021-04-19T20:58:10.440712+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1008:in `route!'
2021-04-19T20:58:10.440713+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1129:in `block in dispatch!'
2021-04-19T20:58:10.440713+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1101:in `block in invoke'
2021-04-19T20:58:10.440713+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1101:in `catch'
2021-04-19T20:58:10.440714+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1101:in `invoke'
2021-04-19T20:58:10.440714+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1124:in `dispatch!'
2021-04-19T20:58:10.440715+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:939:in `block in call!'
2021-04-19T20:58:10.440715+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1101:in `block in invoke'
2021-04-19T20:58:10.440715+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1101:in `catch'
2021-04-19T20:58:10.440716+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1101:in `invoke'
2021-04-19T20:58:10.440716+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:939:in `call!'
2021-04-19T20:58:10.440716+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:929:in `call'
2021-04-19T20:58:10.440717+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/rack-protection-2.1.0/lib/rack/protection/xss_header.rb:18:in `call'
2021-04-19T20:58:10.440717+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/rack-protection-2.1.0/lib/rack/protection/path_traversal.rb:16:in `call'
2021-04-19T20:58:10.440718+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/rack-protection-2.1.0/lib/rack/protection/json_csrf.rb:26:in `call'
2021-04-19T20:58:10.440718+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/rack-protection-2.1.0/lib/rack/protection/base.rb:50:in `call'
2021-04-19T20:58:10.440718+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/rack-protection-2.1.0/lib/rack/protection/base.rb:50:in `call'
2021-04-19T20:58:10.440719+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/rack-protection-2.1.0/lib/rack/protection/frame_options.rb:31:in `call'
2021-04-19T20:58:10.440719+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/rack-2.2.3/lib/rack/null_logger.rb:11:in `call'
2021-04-19T20:58:10.440719+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'
2021-04-19T20:58:10.440719+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:216:in `call'
2021-04-19T20:58:10.440719+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1991:in `call'
2021-04-19T20:58:10.440719+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1542:in `block in call'
2021-04-19T20:58:10.440720+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1769:in `synchronize'
2021-04-19T20:58:10.440720+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1542:in `call'
2021-04-19T20:58:10.440720+00:00 app[web.1]: /app/middlewares/ws_backend.rb:39:in `call'
2021-04-19T20:58:10.440720+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/puma-5.1.1/lib/puma/configuration.rb:246:in `call'
2021-04-19T20:58:10.440727+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/puma-5.1.1/lib/puma/request.rb:76:in `block in handle_request'
2021-04-19T20:58:10.440728+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/puma-5.1.1/lib/puma/thread_pool.rb:337:in `with_force_shutdown'
2021-04-19T20:58:10.440728+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/puma-5.1.1/lib/puma/request.rb:75:in `handle_request'
2021-04-19T20:58:10.440728+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/puma-5.1.1/lib/puma/server.rb:431:in `process_client'
2021-04-19T20:58:10.440728+00:00 app[web.1]: /app/vendor/bundle/ruby/3.0.0/gems/puma-5.1.1/lib/puma/thread_pool.rb:145:in `block in spawn_thread'
2021-04-19T20:58:10.456504+00:00 heroku[router]: at=info method=POST path="/slack/slash_command" host=spiderman-points.herokuapp.com request_id=200cc2b3-eb34-45af-8d04-8cd58577ddcd fwd="34.205.203.186" dyno=w
eb.1 connect=1ms service=303ms status=500 bytes=596 protocol=https
awseward added a commit that referenced this issue Apr 20, 2021
Just need to call `#from_id`. This fixes #32.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant