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.

HttpError: Not Found when publishing GitHub repo with scaffolder

See original GitHub issue

Expected Behavior

No error

Current Behavior

GitHub API returns not found sometimes as it’s eventually consistent

Code here is bombing out: https://github.com/backstage/backstage/blob/master/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/github.ts#L169-L186

Possible Solution

Thinking of either trying to retrieve from GitHub API or just adding in some retries

Steps to Reproduce

  1. scaffold with a template that adds github teams
  2. attempt a few times, I’ve had it happen to me 2 out of ~15 tries

Context

Other blocks in the GitHub publisher have try .. catch .. log but that’s a terrible pattern as the user will likely never see it. This needs proper hardening.

Discussed with @benjdlambert at https://discord.com/channels/687207715902193673/913812564750766150/913819958193045536

Your Environment

  • NodeJS Version (v14):
  • Operating System and Version (e.g. Ubuntu 14.04):
  • Browser Information:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
Crevilcommented, Mar 14, 2022

I guess that is covered by #9208? 🙏

1reaction
benjdlambertcommented, Jan 26, 2022

Done!

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub Actions `HttpError: Not Found` when initializing new ...
Run bobheadxi/deployments@v1 · targeting my-GitHub/my-repo · initializing new deployment for develop @ refs/heads/develop · unexpected error ...
Read more >
Writing scaffolder templates - Roadie.io
The fetch:template action does not output any data. publish:github. This action creates a new GitHub repository and publishes the files in the ...
Read more >
Can't find your organization repositories · Codefresh | Docs
Problem: I want to add a git trigger for a repository that belongs to one of my ... If you do not have...
Read more >
Builtin actions · Backstage Software Catalog and Developer ...
The scaffolder comes with several built-in actions for fetching content, ... the catalog and of course actions for creating and publishing a git...
Read more >
404 not found laravel
Anda akan belajar cara membuat halaman kesalahan 404 di laravel 7/6. Once the installation is complete, it's time to clone a git repository...
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