question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RequestError [HttpError]: Cookies must be enabled to use GitHub.

See original GitHub issue

Current behavior

I set-up a semantic-release workflow via GitHub actions for the repository https://github.com/kleinfreund/vue-accessible-color-picker. On push, the workflow was run and the first version of my package was published (yay!). However, the next step failed (full error below):

[semantic-release] › ✖  Failed step "publish" of plugin "@semantic-release/github"
[semantic-release] › ✖  An error occurred while running semantic-release: RequestError [HttpError]: Cookies must be enabled to use GitHub.

I’m not sure what to make of this error. I don’t recall reading anything in the getting started documents and articles I followed about some cookie settings I needed to be aware of.

Note that I have both NPM_TOKEN and GH_TOKEN configured via the secrets settings of the repository in question. The GH_TOKEN is a public access token which was created with the public_repo permission.

What am I missing from my setup and how can I recover from this botched release?

full error

[semantic-release] › ✖ Failed step “publish” of plugin “@semantic-release/github” [semantic-release] › ✖ An error occurred while running semantic-release: RequestError [HttpError]: Cookies must be enabled to use GitHub. at /home/runner/work/vue-accessible-color-picker/vue-accessible-color-picker/node_modules/@octokit/request/dist-node/index.js:66:23 at processTicksAndRejections (internal/process/task_queues.js:97:5) { status: 403, headers: { ‘cache-control’: ‘no-cache’, connection: ‘close’, ‘content-encoding’: ‘gzip’, ‘content-security-policy’: “default-src ‘none’; base-uri ‘self’; block-all-mixed-content; connect-src ‘self’ uploads.github.com www.githubstatus.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events wss://live.github.com; font-src github.githubassets.com; form-action ‘self’ github.com gist.github.com; frame-ancestors ‘none’; frame-src render.githubusercontent.com; img-src ‘self’ data: github.githubassets.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com .githubusercontent.com; manifest-src ‘self’; media-src ‘none’; script-src github.githubassets.com; style-src ‘unsafe-inline’ github.githubassets.com", ‘content-type’: ‘text/plain; charset=utf-8’, date: ‘Thu, 14 May 2020 17:40:28 GMT’, ‘expect-ct’: ‘max-age=2592000, report-uri=“https://api.github.com/_private/browser/errors”’, ‘referrer-policy’: ‘origin-when-cross-origin, strict-origin-when-cross-origin’, server: ‘GitHub.com’, ‘set-cookie’: ‘_gh_sess=[REDACTED]; path=/; secure; HttpOnly’, status: ‘403 Forbidden’, ‘strict-transport-security’: ‘max-age=31536000; includeSubdomains; preload’, ‘transfer-encoding’: ‘chunked’, vary: ‘X-PJAX, Accept-Encoding, Accept, X-Requested-With’, ‘x-content-type-options’: ‘nosniff’, ‘x-frame-options’: ‘deny’, ‘x-github-request-id’: ‘0400:0851:57C564:924595:5EBD828C’, ‘x-xss-protection’: ‘1; mode=block’ }, request: { method: ‘POST’, url: ‘https://github.com/repos/kleinfreund/vue-accessible-color-picker/releases’, headers: { accept: ‘application/vnd.github.v3+json’, ‘user-agent’: ‘octokit-rest.js/17.9.0 octokit-core.js/2.5.0 Node.js/12.16.3 (Linux 5.3; x64)’, authorization: ‘token [REDACTED]’, ‘content-type’: ‘application/json; charset=utf-8’ }, body: '{“tag_name”:“v1.0.0”,“name”:“v1.0.0”,“body”:"# 1.0.0 (2020-05-14)\n\n\n### Features\n\n implement initial version of vue-accessible-color-picker (eba7d30)\n\n\n\n”,“prerelease”:false}‘, request: { agent: undefined, hook: [Function: bound bound register] } }, pluginName: ‘@semantic-release/github’ } RequestError [HttpError]: Cookies must be enabled to use GitHub. at /home/runner/work/vue-accessible-color-picker/vue-accessible-color-picker/node_modules/@octokit/request/dist-node/index.js:66:23 at processTicksAndRejections (internal/process/task_queues.js:97:5) { status: 403, headers: { ‘cache-control’: ‘no-cache’, connection: ‘close’, ‘content-encoding’: ‘gzip’, ‘content-security-policy’: “default-src ‘none’; base-uri ‘self’; block-all-mixed-content; connect-src ‘self’ uploads.github.com www.githubstatus.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events wss://live.github.com; font-src github.githubassets.com; form-action ‘self’ github.com gist.github.com; frame-ancestors ‘none’; frame-src render.githubusercontent.com; img-src ‘self’ data: github.githubassets.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com .githubusercontent.com; manifest-src ‘self’; media-src ‘none’; script-src github.githubassets.com; style-src ‘unsafe-inline’ github.githubassets.com", ‘content-type’: ‘text/plain; charset=utf-8’, date: ‘Thu, 14 May 2020 17:40:28 GMT’, ‘expect-ct’: ‘max-age=2592000, report-uri=“https://api.github.com/_private/browser/errors”’, ‘referrer-policy’: ‘origin-when-cross-origin, strict-origin-when-cross-origin’, server: ‘GitHub.com’, ‘set-cookie’: ‘_gh_sess=[REDACTED]; path=/; secure; HttpOnly’, status: ‘403 Forbidden’, ‘strict-transport-security’: ‘max-age=31536000; includeSubdomains; preload’, ‘transfer-encoding’: ‘chunked’, vary: ‘X-PJAX, Accept-Encoding, Accept, X-Requested-With’, ‘x-content-type-options’: ‘nosniff’, ‘x-frame-options’: ‘deny’, ‘x-github-request-id’: ‘0400:0851:57C564:924595:5EBD828C’, ‘x-xss-protection’: ‘1; mode=block’ }, request: { method: ‘POST’, url: ‘https://github.com/repos/kleinfreund/vue-accessible-color-picker/releases’, headers: { accept: ‘application/vnd.github.v3+json’, ‘user-agent’: ‘octokit-rest.js/17.9.0 octokit-core.js/2.5.0 Node.js/12.16.3 (Linux 5.3; x64)’, authorization: ‘token [REDACTED]’, ‘content-type’: ‘application/json; charset=utf-8’ }, body: '{“tag_name”:“v1.0.0”,“name”:“v1.0.0”,“body”:"# 1.0.0 (2020-05-14)\n\n\n### Features\n\n implement initial version of vue-accessible-color-picker (eba7d30)\n\n\n\n”,“prerelease”:false}’, request: { agent: undefined, hook: [Function: bound bound register] } }, pluginName: ‘@semantic-release/github’ } ##[error]Process completed with exit code 1.

Expected behavior

For this error to not happened

or

for this error to actually tell me something useful (I know this is in particular not a problem with semantic-release).

Environment

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:26 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
gr2mcommented, May 14, 2020

I’m close, thanks #269

1reaction
rapahaerucommented, May 20, 2020

i still have this problem. its publishes the tag in npm and github but not comunicates with github, to update the pull requests etc…

2020-05-20T22:20:10.7702373Z [10:20:10 PM] [semantic-release] › ✔  Completed step "publish" of plugin "@semantic-release/npm"
2020-05-20T22:20:10.7703012Z [10:20:10 PM] [semantic-release] › ℹ  Start step "publish" of plugin "@semantic-release/github"
2020-05-20T22:20:10.8710449Z [10:20:10 PM] [semantic-release] › ✖  Failed step "publish" of plugin "@semantic-release/github"
2020-05-20T22:20:10.8744320Z [10:20:10 PM] [semantic-release] › ✖  An error occurred while running semantic-release: RequestError [HttpError]: Cookies must be enabled to use GitHub.
2020-05-20T22:20:10.8745870Z     at /home/runner/work/catho-components/catho-components/node_modules/@octokit/request/dist-node/index.js:66:23
2020-05-20T22:20:10.8746684Z     at processTicksAndRejections (internal/process/task_queues.js:97:5) {
2020-05-20T22:20:10.8747273Z   status: 403,
2020-05-20T22:20:10.8747813Z   headers: {
2020-05-20T22:20:10.8749633Z     'cache-control': 'no-cache',
2020-05-20T22:20:10.8750560Z     connection: 'close',
2020-05-20T22:20:10.8751483Z     'content-encoding': 'gzip',
2020-05-20T22:20:10.8755809Z     'content-security-policy': "default-src 'none'; base-uri 'self'; block-all-mixed-content; connect-src 'self' uploads.github.com www.githubstatus.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events wss://live.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; frame-src render.githubusercontent.com; img-src 'self' data: github.githubassets.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com; manifest-src 'self'; media-src 'none'; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; worker-src github.com/socket-worker.js",
2020-05-20T22:20:10.8757171Z     'content-type': 'text/plain; charset=utf-8',
2020-05-20T22:20:10.8758175Z     date: 'Wed, 20 May 2020 22:20:10 GMT',
2020-05-20T22:20:10.8759432Z     'expect-ct': 'max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"',
2020-05-20T22:20:10.8760820Z     'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
2020-05-20T22:20:10.8761762Z     server: 'GitHub.com',
2020-05-20T22:20:10.8770982Z     'set-cookie': 

But my repo is private. Is that a problem?

Read more comments on GitHub >

github_iconTop Results From Across the Web

insomnia cookies must be enabled to use github - You.com
I've been doing some tests with NodeJS from GitHub Codespaces. When I use Insomnia REST (I put the open port link from Codespaces)...
Read more >
404 Not Found on Github API using github.rest.git.createRef
RequestError [HttpError]: Not Found at /home/runner/work/_actions/actions/github-script/v6/ ... headers: { accept: 'application/vnd.github.
Read more >
Github Extension - Not Found Error - Auth0 Community
Hi; I'm trying to get the Github deployment extension working and running into ... [@octokit/request-error] `error.code` is deprecated, use ...
Read more >
net/http - Go Packages
For control over HTTP client headers, redirect policy, and other settings, ... The handler is usually nil, which means to use DefaultServeMux.
Read more >
s3 - Amazon Web Services - Go SDK - AWS Documentation
Use this utility to determine the region a bucket is in. sess := session.Must(session.NewSession()) bucket := "my-bucket" region, err := s3manager.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found