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

Can't access /people on production #92

Closed
pulkitsharma07 opened this issue Sep 30, 2017 · 10 comments
Closed

Can't access /people on production #92

pulkitsharma07 opened this issue Sep 30, 2017 · 10 comments

Comments

@pulkitsharma07
Copy link

I guess it is throwing an exception.

http://www.startupwichita.com/people

@kentonh
Copy link
Member

kentonh commented Oct 1, 2017

It looks like this is caused by a tag with a nil value.

A Person has added a tag that the template can't handle.
@pulkitsharma07 is this something you'd like to work on?

@alienxp03
Copy link

I'd like to work on it if there are no takers yet :)

@kentonh
Copy link
Member

kentonh commented Oct 1, 2017

@alienxp03 It's all you, friendo

@alienxp03
Copy link

@kentonh Any chance I can see the log errors?

@kentonh
Copy link
Member

kentonh commented Oct 1, 2017

Here's what I pulled when I filed the ticket.

2017-09-29T20:18:54.610486+00:00 app[web.1]: Processing by NewsController#show as HTML
2017-09-29T20:18:54.610535+00:00 app[web.1]:   Parameters: {"id"=>"220"}
2017-09-29T20:18:54.625640+00:00 app[web.1]:   Rendered topics/_disqus.html.erb (0.1ms)
2017-09-29T20:18:54.628260+00:00 app[web.1]:   Rendered news/show.html.erb within layouts/application (12.5ms)
2017-09-29T20:18:54.630830+00:00 app[web.1]: Completed 200 OK in 20ms (Views: 12.5ms | ActiveRecord: 4.2ms)
2017-09-29T20:19:41.198442+00:00 app[web.1]: Started GET "/people" for 98.191.133.174 at 2017-09-29 20:19:41 +0000
2017-09-29T20:19:41.201160+00:00 app[web.1]: Processing by PeopleController#index as HTML
2017-09-29T20:19:41.371193+00:00 app[web.1]:   Rendered people/index.html.erb within layouts/application (166.8ms)
2017-09-29T20:19:41.372009+00:00 app[web.1]: Completed 500 Internal Server Error in 171ms (ActiveRecord: 72.5ms)
2017-09-29T20:19:41.375694+00:00 app[web.1]:
2017-09-29T20:19:41.375696+00:00 app[web.1]: ActionView::Template::Error (undefined method `id' for nil:NilClass):
2017-09-29T20:19:41.375699+00:00 app[web.1]:     27:             </p>
2017-09-29T20:19:41.375701+00:00 app[web.1]:     28:             <h4>Interests</h4>
2017-09-29T20:19:41.375701+00:00 app[web.1]:     29:             <p>
2017-09-29T20:19:41.375702+00:00 app[web.1]:     30:               <% if Person.all_interest_tags.size > 0 %>
2017-09-29T20:19:41.375703+00:00 app[web.1]:     31:                 <% Person.all_interest_tags.each do |tag| %>
2017-09-29T20:19:41.375704+00:00 app[web.1]:     32:                   <span class="tags"><%= link_to tag['name'], people_with_interests_path(tag: tag['name']) %></span>
2017-09-29T20:19:41.375705+00:00 app[web.1]:     33:                 <% end %>
2017-09-29T20:19:41.375706+00:00 app[web.1]:   app/models/person.rb:66:in `block in all_interest_tags'
2017-09-29T20:19:41.375707+00:00 app[web.1]:   app/models/person.rb:66:in `all_interest_tags'
2017-09-29T20:19:41.375708+00:00 app[web.1]:   app/views/people/index.html.erb:30:in `block in _app_views_people_index_html_erb___3240603264314269510_69913411392160'
2017-09-29T20:19:41.375709+00:00 app[web.1]:   app/views/people/index.html.erb:1:in `_app_views_people_index_html_erb___3240603264314269510_69913411392160'
2017-09-29T20:19:41.375709+00:00 app[web.1]:   app/controllers/people_controller.rb:16:in `index'
2017-09-29T20:19:41.375710+00:00 app[web.1]:
2017-09-29T20:19:41.375711+00:00 app[web.1]:```

@alienxp03
Copy link

alienxp03 commented Oct 2, 2017

Seems like could be an issue with acts_as_ordered_taggable_on. Created PR 102 🙂

@kentonh
Copy link
Member

kentonh commented Oct 2, 2017

@alienxp03 I've deployed this PR to production, but the problem persists.

@alienxp03
Copy link

Same error I suppose? I'll check on it later tonight (my timezone) 😁

@pulkitsharma07
Copy link
Author

I'll take a look into it tonight, btw, isn't the page taking too long to load ?
It takes about 10-11 seconds for me.

@kentonh, Did this happen after deploying the PR #102 ?

@kentonh
Copy link
Member

kentonh commented Oct 3, 2017

@pulkitsharma07 you're right! and @alienxp03, it's not the same error. It looks like a Heroku timeout, probably based all the gravitar checks on #98.

@kentonh kentonh closed this as completed Oct 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants