headlesscms.org icon indicating copy to clipboard operation
headlesscms.org copied to clipboard

Error: {"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}

Open ceefour opened this issue 5 years ago • 0 comments

Following the README.md to set .env as follows:

HEADLESS_CMS_GITHUB_TOKEN=examplekey123abc
HEADLESS_CMS_TWITTER_CONSUMER_KEY=examplekey231abc
HEADLESS_CMS_TWITTER_CONSUMER_SECRET=examplekey321abc
HEADLESS_CMS_TWITTER_ACCESS_TOKEN_KEY=examplekey231abc
HEADLESS_CMS_TWITTER_ACCESS_TOKEN_SECRET=examplekey321abc

When running npm start I still get:

> [email protected] start D:\project_amanah\headlesscms.org
> react-static start

=> Building Routes...
Local archive not found, fetching new data.
[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4
  Error: {"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}

  - request.js:73 IncomingMessage.<anonymous>
    [headlesscms.org]/[@octokit]/rest/lib/request/request.js:73:18

  - events.js:228 IncomingMessage.emit
    events.js:228:7

  - _stream_readable.js:1185 endReadableNT
    _stream_readable.js:1185:12

  - task_queues.js:81 processTicksAndRejections
    internal/process/task_queues.js:81:21


npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `react-static start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ceefour\AppData\Roaming\npm-cache\_logs\2020-03-26T22_29_38_689Z-debug.log

ceefour avatar Mar 26 '20 22:03 ceefour