Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

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

Open
ceefour opened this issue Mar 26, 2020 · 0 comments

Comments

@ceefour
Copy link
Contributor

ceefour commented Mar 26, 2020

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:

> headlesscms@2.0.0 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! headlesscms@2.0.0 start: `react-static start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the headlesscms@2.0.0 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant