Skip to content
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

Error when passing --release-it #111

Open
esbanarango opened this issue Mar 22, 2023 · 2 comments
Open

Error when passing --release-it #111

esbanarango opened this issue Mar 22, 2023 · 2 comments

Comments

@esbanarango
Copy link

Currently running:

ember addon ember-new-v2-addon-testr -b @embroider/addon-blueprint --pnpm --skip-npm --typescript --release-it

and getting:

Error creating new application. Removing generated directory `./ember-new-v2-addon-test`
Command failed with exit code 1: create-rwjblue-release-it-setup --no-install
[HttpError: Not Found] {
  statusCode: 404,
  headers: {
    server: 'github.com',
    date: 'Wed, 22 Mar 2023 02:37:06 GMT',
    'content-type': 'application/json; charset=utf-8',
    'content-length': '106',
    'x-github-media-type': 'github.v3; param=symmetra-preview; format=json',
    'x-github-api-version-selected': '2022-11-28',
    'x-ratelimit-limit': '60',
    'x-ratelimit-remaining': '48',
    'x-ratelimit-reset': '1679456172',
    'x-ratelimit-used': '12',
    'x-ratelimit-resource': 'core',
    'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset',
    'access-control-allow-origin': '*',
    'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
    'x-frame-options': 'deny',
    'x-content-type-options': 'nosniff',
    'x-xss-protection': '0',
    'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
    'content-security-policy': "default-src 'none'",
    vary: 'Accept-Encoding, Accept, X-Requested-With',
    'x-github-request-id': 'E2D8:2E7B:5B89B1:BC9C65:641A69D2',
    connection: 'close'
  },
  body: {
    message: 'Not Found',
    documentation_url: 'https://docs.github.com/rest/reference/issues#create-a-label'
  },
  method: 'POST',
  endpoint: '/repos/esbanarango/ember-new-v2-addon-test/labels'
}
node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Error: Not Found".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v18.14.2


Stack Trace and Error Report: /var/folders/jq/k7tk0_dx5yvc0cxl4q3ll7680000gp/T/error.dump.581f5380f88e7166d5a81988b66fa7e3.log
@bertdeblock
Copy link
Contributor

Seems like / similar to rwjblue/create-rwjblue-release-it-setup#81.

@simonihmig
Copy link
Collaborator

I tried this out, and it was working fine for me!

Seems like / similar to rwjblue/create-rwjblue-release-it-setup#81.

That issue has been resolved, and seems to refer to a bug when the git repository is empty. And in fact, when running the blueprint, it should be empty, as we cannot know this upfront. However, in the stack trace above, the create-rwjblue-release-it-setup seems to call the Github API for creating the labels, but actually with a known repository! See:

endpoint: '/repos/esbanarango/ember-new-v2-addon-test/labels'

So if esbanarango/ember-new-v2-addon-test does not exist (it does not), that would explain the error. But I wonder where that comes from even? @esbanarango any idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants