Api request with access_token return 404


What i did

  • registered new github app’
  • set app permissions issue - read & write
  • add firebase for github oauth & add scope ‘repo’
  • get access_token after sign in

After sign in


“documentation_url” :“https://developer.github.com/v3/repos/#list-your-repositories
“message”: “Not Found”

But… when i


  • url: ‘https://api.github.com/user
  • method: ‘get’
  • headers
    • Accept: ‘application/vnd.github.v3+json’,
  • params
    • access_token: MY_ACCESS_TOKEN

successfully response
“login”: “gomonk3037”,
“id”: 20644690,
and more…

Why is this happening?

Before using “github apps” oauth credentials, I was just using “oauth apps” oauth credentials, and then a normal response was received for all api’s reqeust.


Hi @gomonk3037 - GitHub Apps are not OAuth Apps, they’re separate concepts. Take a moment to read through What is the meaning and purpose of the “Enabled For GitHub Apps” tag in some API endpoints? for some additional clarification.

You need to install your GitHub App on a repository or user account or organization. Then you’ll need to create an access token for the installation, which has access to the repository or account in question. https://developer.github.com/apps/building-integrations/setting-up-and-registering-github-apps/about-authentication-options-for-github-apps/#authenticating-as-an-installation


Thank you for let me know that github apps and oauth apps are different.

But I still have questions,
Why does request - ‘/ user / repos’ not work when request - ‘/ user’ works normally?

I did not add it to the main text, but I also went through the github app install.


I don’t understand the question. What does “normally” mean here? Or asked differently, how did you request /user/repos?