Code Monkey home page Code Monkey logo

Comments (7)

jferris avatar jferris commented on August 29, 2024

@boxofrox sorry that you're running into errors. I just tried it with my account using your steps, and I end up logged in.

Could this have been an intermittent issue with the GitHub API? Can you try again now?

from carnival.

boxofrox avatar boxofrox commented on August 29, 2024

I tried signing in again twice with github, but I still get the "Authorization Error". First tried with existing token I created for Carnival from earlier, then revoked that, and created a new token.

I checked the console log in case a more specific description of the problem was dumped there, but it's blank.

Not sure what else I can provide that would assist in reproducing this. If you need my public IP address to cross reference log files, I'm willing to provide it.

from carnival.

jferris avatar jferris commented on August 29, 2024

Searching for "auth" in today's logs, I found this entry:

10/Nov/2015:17:38:22 +0000 [Error] github: missing key name @(yesod-auth-1.4.4:Yesod.Auth ./Yesod/Auth.hs:314:15)

Maybe our GitHub sign in only works for users who have a name set on their GitHub profile? Can you try setting your name and logging in? If that's the issue, I think it's a bug on our end.

from carnival.

jferris avatar jferris commented on August 29, 2024

Looks like we do return an error for profiles without a name: https://github.com/thoughtbot/carnival/blob/master/Model/User.hs#L89

The GitHub OAuth2 Yesod adapter returns both name (Maybe Text) and login (Text) keys, so we could look for name and fall back to login

from carnival.

boxofrox avatar boxofrox commented on August 29, 2024

Setting the name in my profile worked. Nice find.

from carnival.

jferris avatar jferris commented on August 29, 2024

Cool. Thanks for working through that with me. I'll try to get the login fallback in on Friday.

from carnival.

boxofrox avatar boxofrox commented on August 29, 2024

My pleasure. I'll let you close the issue at your convenience.

from carnival.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.