#1758·probot

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

Author: subhajitbhuiyaCreated Nov 8, 2022Updated Jul 30, 2025

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.

javascript
// 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.