401. Message: Must authenticate to access this API on GitHub Enterprise
What happened? GItHub Octokit throws 401 error with GitHub App. Here is the code looks like import dotenv from ‘dotenv’ import fs from ‘fs’ import http from ‘http’ import { Octokit, App } from ‘octokit’ import { createNodeMiddleware } from ‘@octokit/webhooks’ import { createAppAuth } from “@octokit/auth-app”; // Load environment variables from .env file dotenv.config() […]
[BUG]: 401. Message: Must authenticate to access this API. (GitHub Enterprise)
What happened? GItHub Octokit throws 401 error with GitHub App. Here is the code looks like import dotenv from ‘dotenv’ import fs from ‘fs’ import http from ‘http’ import { Octokit, App } from ‘octokit’ import { createNodeMiddleware } from ‘@octokit/webhooks’ import { createAppAuth } from “@octokit/auth-app”; // Load environment variables from .env file dotenv.config() […]