-
Notifications
You must be signed in to change notification settings - Fork 1.3k
GitHub API: check repository for null #8733
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 think it was just taking Github a long time to restore? Works now, ~26 minutes later. That, or we've got some kind of cache on our side that had to be invalidated. |
@AlexTugarev I faintly recall you fixed a similar error in the past? What was it exactly? |
Interesting, this looks like #3659, which we had fixed with #3869. I wonder why it came back. Will have a quick look at where we possibly try to read Also, FYI, I believe this is indeed GitHub taking some time to fully restore a deleted branch. I wonder if GraphQL calls somehow changed and can now return something like This could explain why we're trying to read gitpod/components/server/src/github/github-context-parser.ts Lines 302 to 305 in d2913ae
before reaching the line that checks whether the branch was deleted (original fix): gitpod/components/server/src/github/github-context-parser.ts Lines 314 to 316 in d2913ae
|
@jankeromnes, 💯! There are several places with the same pattern: It's worth changing to check Also, it seems like GH API doesn't consistently return same in such cases. If you try again on the PR mentioned above, it's reports as expected. |
Aha, good idea! 🎯
Yes, as @kylos101 reported, this problem was only temporary:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bug description
Steps to reproduce
Delete a branch in a PR.
Restore it.
Try opening this using the Gitpod browser extension.
Originally discovered here
Workspace affected
n/a
Expected behavior
Should be able to open Gitpod from a branch which was deleted and is now restored.
Example repository
gitpod-io/workspace-images#564
Anything else?
No response
The text was updated successfully, but these errors were encountered: