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

Cleaner error when failing to get GitHub info #302

Open
rasmus opened this issue Nov 14, 2023 · 0 comments
Open

Cleaner error when failing to get GitHub info #302

rasmus opened this issue Nov 14, 2023 · 0 comments
Labels
enhancement Extra attention is needed

Comments

@rasmus
Copy link
Owner

rasmus commented Nov 14, 2023

Failed fetching pull request information
System.ArgumentNullException: Value cannot be null. (Parameter 'token')
   at Octokit.Ensure.ArgumentNotNull(Object value, String name) in /_/Octokit/Helpers/Ensure.cs:line 22
   at Octokit.Ensure.ArgumentNotNullOrEmptyString(String value, String name) in /_/Octokit/Helpers/Ensure.cs:line 32
   at Octokit.Credentials..ctor(String token, AuthenticationType authenticationType) in /_/Octokit/Http/Credentials.cs:line 32
   at Octokit.Credentials..ctor(String token) in /_/Octokit/Http/Credentials.cs:line 28
   at Bake.Services.GitHubClientFactory.CreateAsync(String token, Uri apiUrl, CancellationToken cancellationToken) in /home/runner/work/Bake/Bake/Source/Bake/Services/GitHubClientFactory.cs:line 41
   at Bake.Services.GitHub.CreateGitHubClientAsync(GitHubInformation gitHubInformation, CancellationToken cancellationToken) in /home/runner/work/Bake/Bake/Source/Bake/Services/GitHub.cs:line 151
   at Bake.Services.GitHub.GetPullRequestInformationAsync(GitInformation gitInformation, GitHubInformation gitHubInformation, CancellationToken cancellationToken) in /home/runner/work/Bake/Bake/Source/Bake/Services/GitHub.cs:line 97
   at Bake.Cooking.Ingredients.Gathers.GitHubGather.GatherAsync(Ingredients ingredients, CancellationToken cancellationToken) in /home/runner/work/Bake/Bake/Source/Bake/Cooking/Ingredients/Gathers/GitHubGather.cs:line 141
@rasmus rasmus added the enhancement Extra attention is needed label Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant