-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Status: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: BugSomething isn't working as documentedSomething isn't working as documented
Description
What happened?
While creating repository variables in a loop I get for some variables a NotFoundException
.
I could narrow it down to the function RepositoryVariablesClient.Create()
As you can see it creates the variable first and then tries to load it, where the error occurs. I checked the repository settings and the variable was indeed successfully created. So it seams that there is a small time frame where the variable can not be found after the creation.
Maybe it would make sense to implement a delay or a retry as a fallback. What do you think?
Versions
Octokit.NET 14.0.0
Relevant log output
Octokit.NotFoundException: Not Found
at Octokit.Connection.HandleErrors(IResponse response) in /_/Octokit/Http/Connection.cs:line 817
at Octokit.Connection.RunRequest(IRequest request, CancellationToken cancellationToken, Func`2 preprocessResponseBody) in /_/Octokit/Http/Connection.cs:line 798
at Octokit.Connection.Run[T](IRequest request, CancellationToken cancellationToken, Func`2 preprocessResponseBody) in /_/Octokit/Http/Connection.cs:line 783
at Octokit.ApiConnection.Get[T](Uri uri, IDictionary`2 parameters)
at Octokit.RepositoryVariablesClient.Create(String owner, String repoName, Variable newVariable) in /_/Octokit/Clients/RepositoryVariablesClient.cs:line 107
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Status: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: BugSomething isn't working as documentedSomething isn't working as documented
Type
Projects
Status
🆕 Triage