TransWikia.com

`yarn semantic-release-cli setup` fails with 404 from github authorizations API

Stack Overflow Asked by tvanc on January 21, 2021

Running this command

yarn semantic-release-cli setup

And giving these answers

? What is your npm registry? https://registry.yarnpkg.com/
? Which authentication method is this npm registry using? Token based
? What is your npm username? ...
? What is your npm password? [hidden]
? What is your GitHub username? ...
? What is your GitHub password? [hidden]

Fails with this error (trimmed for readability), forcing me to repeat the questionnaire in order to retry.

StatusCodeError: 404 - {"message":"Not Found","documentation_url":"https://docs.github.com/rest"}
    at new StatusCodeError (C:UsersUserPhpstormProjectscorner-radiusnode_modulesrequest-promise-coreliberrors.js:32:15)
    at Request.plumbing.callback (C:UsersUserPhpstormProjectscorner-radiusnode_modulesrequest-promise-corelibplumbing.js:104:33)
    at Request.RP$callback [as _callback] (C:UsersUserPhpstormProjectscorner-radiusnode_modulesrequest-promise-corelibplumbing.js:46:31)
    at Request.self.callback (C:UsersUserPhpstormProjectscorner-radiusnode_modulesrequestrequest.js:185:22)
    at Request.emit (events.js:314:20)
    at Request.<anonymous> (C:UsersUserPhpstormProjectscorner-radiusnode_modulesrequestrequest.js:1154:10)
    at Request.emit (events.js:314:20)
    at IncomingMessage.<anonymous> (C:UsersUserPhpstormProjectscorner-radiusnode_modulesrequestrequest.js:1076:12)
    at Object.onceWrapper (events.js:420:28)
    at IncomingMessage.emit (events.js:326:22)
    at endReadableNT (_stream_readable.js:1252:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) 
{
  statusCode: 404,
  error: {
    message: 'Not Found',
    documentation_url: 'https://docs.github.com/rest'
  },
  options: {
    resolveWithFullResponse: true,
    method: 'POST',
    url: 'https://api.github.com/authorizations',
    json: true,
    auth: {
      username: '...',
      password: '...',
      endpoint: 'https://api.github.com',
      user: '...',
      pass: '...'
    },
    headers: { 'User-Agent': 'semantic-release' },
    body: { scopes: [Array], note: 'semantic-release-corner-radius-wpmx8n0' },
    callback: [Function: RP$callback],
    transform: undefined,
    simple: true,
    transform2xxOnly: false
  },
  ...
}

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP