This forum is now read-only. Please use our new forums at discuss.codecademy.com.

OAuth2 Forum

View Course » View Exercise

1448 points
Picture
Submitted by
Aaron Reisman
almost 3 years ago

Code not running

Issues running code on this exercise.


12 votes

permalink

I created a new auth token on my github account with limited access and used that instead. Whilst it still errors the task, it returned my username just fine. Seems this token is invalid.

A work around is replacing...

puts "Hi, my username is #{user["login"]}"

...with...

puts "Hi, my username is api-padawan"

That is the username it is meant to return.

990 points
E76bc3f0229fc5fbc57840c81f4691df?s=140&d=retro
Submitted by
Nicholas Bayley
almost 3 years ago

2 Comments

54e362b6e39efed280002576_62031016 Chris over 2 years ago

You're now coding-jesus for me
one who has given his name so we can complete this task, praise the lord!

Bc9ae61a4602a883a0f5139df2229c94?s=140&d=retro torontocode over 2 years ago

I hope Codeacademy fixes this bug. It shouldn't have to work that way.


0 votes

permalink

I'm also not able to run this.

1201 points
54c7ca5786f5525b840031dc_719269245
Submitted by
David Young
almost 3 years ago


0 votes

permalink

Same issue.

122 points
7d2ed991c0d85b9994541779f311d5d0?s=140&d=retro
Submitted by
mmalivuk
almost 3 years ago

3 Comments

7d2ed991c0d85b9994541779f311d5d0?s=140&d=retro mmalivuk almost 3 years ago

the response is: {"message"=>"Bad credentials", "documentation_url"=>"https://developer.github.com/v3"}

E76bc3f0229fc5fbc57840c81f4691df?s=140&d=retro Nicholas Bayley almost 3 years ago

Can work around this issue (see my answer), although it doesn't make much sense to as it relies on this github account for the rest of the course.

7d2ed991c0d85b9994541779f311d5d0?s=140&d=retro mmalivuk almost 3 years ago

Thanks, I've completed everything else, I just wanted to have 100% completion on it. I'm a little OCD.


0 votes

permalink

Still not working... :(

192 points
F3123195051caa2f71674df0798284b0?s=140&d=retro
Submitted by
dirrelito
over 2 years ago


0 votes

permalink

Yeah Im stuck here too

30 points
14f37308240e4c3fc74f1bfe75bb7105?s=140&d=retro
Submitted by
ovilpat00
over 2 years ago