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

Application Error for my GitHub Username #15

Open
zeke opened this issue Mar 6, 2016 · 5 comments
Open

Application Error for my GitHub Username #15

zeke opened this issue Mar 6, 2016 · 5 comments

Comments

@zeke
Copy link

zeke commented Mar 6, 2016

Originally opened this at ghuls-apps/ghuls-deprecated#30, but then realized that repo is deprecated)

http://ghuls.herokuapp.com/analyze?user=zeke spins for a while, then:

screen shot 2016-03-06 at 9 34 00 am

Would love to see the results. Let me know how I can help.

ELI EDIT:
Relevant Logs:

2016-03-06T17:33:13.662376+00:00 app[web.1]: 2016-03-06 17:33:13 - NoMethodError - undefined method `each' for nil:NilClass:
2016-03-06T17:33:13.662386+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.3.0/gems/github-calendar-1.0.0/lib/github/calendar.rb:97:in `get_monthly'
@elifoster
Copy link
Member

Weird. It errored the first few times I tried using GitHub::Calendar#get_monthly('zeke') (in pry), but now it seems to be working fine, returning {"01"=>226, "02"=>38, "03"=>800, "04"=>339, "05"=>77, "06"=>24, "07"=>37, "08"=>26, "09"=>69, "10"=>50, "11"=>120, "12"=>97}. Still erroring on the webpage. I am really curious as to what is actually causing this issue. I'll open an issue over at the github-calendar-api repo.

@elifoster
Copy link
Member

Hm, I restarted the dynos on Heroku and it seems to be working fine now.

@zeke
Copy link
Author

zeke commented Mar 6, 2016

Huh, different error for me this time:

screen shot 2016-03-06 at 2 50 40 pm

@elifoster
Copy link
Member

That one appears to be the same error. I still have absolutely no idea why this is happening occasionally. Although, unlike before, this errored when I ran it on myself as well.

elifoster added a commit to ghuls-apps/github-calendar-api that referenced this issue Mar 22, 2016
We now use Curb instead of OpenURI to prevent monkeypatch overlapping between it and Sinatra.
Properly use Nokogiris methods instead of to_s and regular expressions.
Improve get_calendar so that the initial g is not included.
Not closing either #4 or ghuls-apps/ghuls-web#15 because it *might* not actually resolve the bug.
@elifoster
Copy link
Member

This may have been fixed by 2bfb3a9, but I'm not sure as we are having some performance issues which prevent Heroku from loading anything.

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

2 participants