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

RequestError [HttpError]: 'Expiration time' claim ('exp') must be a numeric value representing the future time at which the assertion expires #1758

Open
subhajitbhuiya opened this issue Nov 8, 2022 · 2 comments

Comments

@subhajitbhuiya
Copy link

Bug Report

Current Behavior

After probot listener receive an event, while making 1st call to git, getting error

RequestError [HttpError]: 'Expiration time' claim ('exp') must be a numeric value representing the future time at which the assertion expires
at /usr/src/app/node_modules/probot/node_modules/@octokit/request/dist-node/index.js:86:21
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async getInstallationAuthentication (/usr/src/app/node_modules/@octokit/auth-app/dist-node/index.js:190:7)
at async hook (/usr/src/app/node_modules/@octokit/auth-app/dist-node/index.js:359:7)
at async Job.doExecute (/usr/src/app/node_modules/bottleneck/light.js:405:18) {
status: 401,

This happens when I run it inside a container. If I run it locally it works fine. I logged all environment variable and all are same in docker and local version.

// Your code here
module.exports = (app) => {
  app.log.info("There is a bug");
};

Expected behavior/code
A clear and concise description of what you expected to happen (or code).

Environment

  • Probot version(s): [e.g. v6.0.0] 12.2.4
  • Node/npm version: [e.g. Node 8/npm 5] node 16 / npm 8
  • OS: [e.g. OSX 10.13.4, Windows 10] linux

Possible Solution

Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.

@welcome
Copy link

welcome bot commented Nov 8, 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.

@agamm
Copy link

agamm commented Feb 11, 2023

This also happens with the create-probot-app with check-js template. And there is also a 401:

INFO (http): POST / 401 - 442ms
ERROR (server): Unauthorized
    Error: Unauthorized
        at Request.callback (/home/agam/dev/test/node_modules/superagent/lib/node/index.js:921:17)
        at IncomingMessage.<anonymous> (/home/agam/dev/test/node_modules/superagent/lib/node/index.js:1165:20)
        at IncomingMessage.emit (node:events:539:35)
        at IncomingMessage.emit (node:domain:475:12)
        at endReadableNT (node:internal/streams/readable:1345:12)
        at processTicksAndRejections (node:internal/process/task_queues:83:21)
status: 401

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

2 participants