HttpError: Not Found when publishing GitHub repo with scaffolder
See original GitHub issueExpected 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
- scaffold with a template that adds github teams
- 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:
- Created 2 years ago
- Reactions:2
- Comments:19 (19 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I guess that is covered by #9208? 🙏
Done!