I had issues with authentication when working with GitHub's Probot app. When I ran the app using npm start, I would get
github: Github request: GET /app/installations - 404 Not Found
and
ERROR probot: {"message":"Integration not found", "documentation_url": "https://developer.github.com/v3"}
I later found that the reason I was getting this issue was because I was working from a GitHub Enterprise account and needed to add an extra variable to my .env file:
GHE_HOST=github.your_company.com
After restarting my app, I no longer had those issues.
Integration
refers to your app. Double-check whether your app id is correct. Decode your JWT token and check if theiss
matches your app id. And lastly, check your request, are you sending requests to the correct Github tenant (API url). – Expressway