Skip to content

HTTP error code 500 #6

@ceving

Description

@ceving

It does not seem to work anymore:

$ npx gist-migrator@latest
Need to install the following packages:
  [email protected]
Ok to proceed? (y) 
npm WARN deprecated @gitbeaker/[email protected]: Please use its successor @gitbeaker/rest
✔ GitHub API URL … https://api.github.com
✔ GitLab API URL … https://gitlab.com
✔ GitHub access token: … ****************************************
✔ GitLab access token: … **************************
Fetching gist data...
/home/szi/.npm/_npx/810326af66136ad8/node_modules/@octokit/request/dist-node/index.js:146
    throw new import_request_error.RequestError(error.message, 500, {
          ^

RequestError [HttpError]: fetch failed
    at /home/szi/.npm/_npx/810326af66136ad8/node_modules/@octokit/request/dist-node/index.js:146:11
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.next (/home/szi/.npm/_npx/810326af66136ad8/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js:71:28)
    at async /home/szi/.npm/_npx/810326af66136ad8/node_modules/gist-migrator/migrate.js:106:20 {
  status: 500,
  request: {
    method: 'GET',
    url: 'https://api.github.com/gists',
    headers: {
      accept: 'application/vnd.github.v3+json',
      'user-agent': 'octokit-rest.js/19.0.3 octokit-core.js/4.2.4 Node.js/20.17.0 (linux; x64)',
      authorization: 'token [REDACTED]'
    },
    request: { hook: [Function: bound bound register] }
  }
}

Node.js v20.17.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions