-
Notifications
You must be signed in to change notification settings - Fork 139
RequestError [HttpError]: Cookies must be enabled to use GitHub. #268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm fairly sure the problem occurs around here: Line 30 in 8027e91
|
So this is curious: Because of this line: Line 19 in 8027e91
I wonder if the |
I was able to reproduce your error: |
Following your recommendation to fix the |
I've added the When run in dry mode, semantic-release is not attempting to create a release, so you don't get the error |
@gr2m GITHUB_URL is new and feature flag turned on for some accounts today |
I'm close, thanks #269 |
🎉 This issue has been resolved in version 7.0.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I am using the latest and running into the same issue ( logs ). |
@ENikS As far as I understand, the bug was fixed in |
<!-- added by https://github.com/apps/hearts --><a href='https://hearts.dev/projects/3/users/ENikS'><img width='50' alt='' align='right' src='https://hearts.dev/projects/3/users/ENikS/tally.svg'></a>
Got it, thank you
|
@ENikS sorry for the disruption. FYI, we're also turning off the feature flag now so Actions will stop setting GITHUB_URL. We're going to switch to GITHUB_SERVER_URL before re-enabling, so it doesn't conflict with semantic-release/github. |
i still have this problem.
But my repo is private. Is that a problem? |
I have the same problem as @rapahaeru with multiple of my repos. They are all public and use the latest version of the semantic-release packages. |
## [1.1.2](v1.1.1...v1.1.2) (2020-05-24) ### Bug Fixes * **release:** use GH_URL env variable ([b7c5c20](b7c5c20)), closes [/github.com/semantic-release/github/issues/268#issuecomment-628816386](https://github.com//github.com/semantic-release/github/issues/268/issues/issuecomment-628816386)
@rapahaeru try setting the GH_URL to https://api.github.com that resolved it for me. |
@Silthus worked here, thanks so much! |
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):
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
andGH_TOKEN
configured via the secrets settings of the repository in question. TheGH_TOKEN
is a public access token which was created with thepublic_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 assets-git.f3mw1.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; frame-src render.githubusercontent.com; img-src 'self' data: assets-git.f3mw1.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com .githubusercontent.com; manifest-src 'self'; media-src 'none'; script-src assets-git.f3mw1.com; style-src 'unsafe-inline' assets-git.f3mw1.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 assets-git.f3mw1.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; frame-src render.githubusercontent.com; img-src 'self' data: assets-git.f3mw1.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com .githubusercontent.com; manifest-src 'self'; media-src 'none'; script-src assets-git.f3mw1.com; style-src 'unsafe-inline' assets-git.f3mw1.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
The text was updated successfully, but these errors were encountered: