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

Deploy Octokit issue #1655

Open
blakeromano-il opened this issue Feb 22, 2022 · 1 comment
Open

Deploy Octokit issue #1655

blakeromano-il opened this issue Feb 22, 2022 · 1 comment

Comments

@blakeromano-il
Copy link

Bug Report

Current Behavior
I have deployed a probot application with the Server class. Everything works perfectly fine when deployed to Heroku or in local environment. When I have deployed to my Kubernetes cluster I get an Integration not found issue when I am using context.octokit. I get an error saying

status: 404
request: {
    method: "POST"
    url: "https://api.github.com/app/installations/{Number here}/access_tokens"
    headers: {
      "accept": "application/vnd.github.machine-man-preview+json",
      "user-agent": "probot/12.2.1 octokit-core.js/3.5.1 Node.js/12.22.10 (linux; x64)",
      "authorization": "bearer [REDACTED]",
      "content-length": 0
    }
    request: {
      "retryCount": 1
    }
}

I also get this error

ERROR (AggregateError): 
    HttpError: Integration not found
        at /usr/src/app/node_modules/@octokit/request/dist-node/index.js:86:21
        at async getInstallationAuthentication (/usr/src/app/node_modules/@octokit/auth-app/dist-node/index.js:280:7)
        at async hook (/usr/src/app/node_modules/@octokit/auth-app/dist-node/index.js:449:7)
        at async Job.doExecute (/usr/src/app/node_modules/bottleneck/light.js:405:18)
    AggregateError: 
        HttpError: Integration not found
            at /usr/src/app/node_modules/@octokit/request/dist-node/index.js:86:21
            at async getInstallationAuthentication (/usr/src/app/node_modules/@octokit/auth-app/dist-node/index.js:280:7)
            at async hook (/usr/src/app/node_modules/@octokit/auth-app/dist-node/index.js:449:7)
            at async Job.doExecute (/usr/src/app/node_modules/bottleneck/light.js:405:18)
        at /usr/src/app/node_modules/@octokit/webhooks/dist-node/index.js:187:19
        at async middleware (/usr/src/app/node_modules/@octokit/webhooks/dist-node/index.js:355:5)

It doesn't send any data back to the Github app and doesn't continue through.
Expected behavior/code

I expect the application to be able to run without any error occuring when probot runs it's tasks.

@welcome
Copy link

welcome bot commented Feb 22, 2022

Thanks for opening this issue. A contributor should be by to give feedback soon. In the meantime, please check out the contributing guidelines and explore other ways you can get involved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant