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

Azure DevOps pipeline CreatePullRequest: Error BadRequest #58

Open
andremessier-sage opened this issue Jul 14, 2020 · 1 comment
Open

Comments

@andremessier-sage
Copy link

I'm not sure if I'm doing something wrong or if this is a legit bug. I created a new WebApp in visual studio, added a couple dependencies, then created a pipeline with the NuKeeper extensions installed from the marketplace. When it runs, it finds the updates but gives a pretty non-specific error message.

Here is the tail end of the log:

Found 2 package updates
Microsoft.Extensions.Logging to 3.1.5 from 3.1.3 in 1 place since 2 minutes ago.
Newtonsoft.Json to 12.0.3 from 6.0.6 in 1 place since 2 minutes ago.
Selection of package updates: 2 candidates
Selected package update of Newtonsoft.Json to 12.0.3
Selected package update of Microsoft.Extensions.Logging to 3.1.5
Updating 'Newtonsoft.Json' from 6.0.6 to 12.0.3 in 1 projects
CreatePullRequest: Error BadRequest
Updates failed NuKeeperException : CreatePullRequest: Error BadRequest
Attempted 2 updates and did 0
Finishing: NuKeeper

I verified that my [project name] Build Service ([org name]) account has Contribute, Contribute to pull requests, and Create branch permissions. All three are Allow (inherited).

Any idea what I may be doing wrong here?

I entered this issue in the main NuKeeperDotNet core project ( NuKeeperDotNet/NuKeeper#1003 ) but realized it probably belongs here.

@CrispyDrone
Copy link

Can you try again with detailed output? You should be able to pass in -v D as argument. You can also try setting a variable in the pipeline run system.debug and give it the value true. This might also help give more detailed logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants