question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keep getting "Dependabot::RepoNotFound" and "Dependabot::Clients::Azure::NotFound"

See original GitHub issue

I’ve installed the extension in our Azure DevOps environment and created a PAT with full access. No matter what I fill in for the parameters “directory” and “targetBranch”, I keep on getting “Dependabot::RepoNotFound” and “Dependabot::Clients::Azure::NotFound” errors. Below you see the log. In the log I’ve replaced the real names with the placeholders [Organisation name], [project name] and [repo name]. The default branch is ‘develop’. I’ve tried providing a specific branch, providing ‘develop’ omitting the parameter. With the setting for nuget, I’ve tried providing a folder where a nuget.config is provided, but also in the root, there is a nuget.config. I’ve tried with npm, pointing to a folder where a package.json is located. But all the time it results in the same error.

I see the URL ‘[OrganisationName].visualstudio.com’ is used while nowadays you see ‘https://dev.azure.com/[OrganisationName]’. Could that be related? I don’t see a way of changing that, so I can’t try that out. I guess spaces in project names can be used?

Your help is really appriciated!

/vendor/ruby/2.6.0/gems/dependabot-common-0.133.5/lib/dependabot/file_fetchers/base.rb:444:in rescue in default_branch_for_repo’: Dependabot::RepoNotFound (Dependabot::RepoNotFound) from /vendor/ruby/2.6.0/gems/dependabot-common-0.133.5/lib/dependabot/file_fetchers/base.rb:440:in default_branch_for_repo' from /vendor/ruby/2.6.0/gems/dependabot-common-0.133.5/lib/dependabot/file_fetchers/base.rb:70:in commit’ from /vendor/ruby/2.6.0/gems/dependabot-common-0.133.5/lib/dependabot/file_fetchers/base.rb:359:in _full_specification_for' from /vendor/ruby/2.6.0/gems/dependabot-common-0.133.5/lib/dependabot/file_fetchers/base.rb:174:in _fetch_repo_contents’ from /vendor/ruby/2.6.0/gems/dependabot-common-0.133.5/lib/dependabot/file_fetchers/base.rb:159:in repo_contents' from /vendor/ruby/2.6.0/gems/dependabot-nuget-0.133.5/lib/dependabot/nuget/file_fetcher.rb:184:in csproj_file’ from /vendor/ruby/2.6.0/gems/dependabot-nuget-0.133.5/lib/dependabot/nuget/file_fetcher.rb:55:in project_files' from /vendor/ruby/2.6.0/gems/dependabot-nuget-0.133.5/lib/dependabot/nuget/file_fetcher.rb:28:in fetch_files’ from /vendor/ruby/2.6.0/gems/dependabot-common-0.133.5/lib/dependabot/file_fetchers/base.rb:64:in files' from ./update-script.rb:155:in <main>’ /vendor/ruby/2.6.0/gems/dependabot-common-0.133.5/lib/dependabot/clients/azure.rb:207:in get': Dependabot::Clients::Azure::NotFound (Dependabot::Clients::Azure::NotFound) from /vendor/ruby/2.6.0/gems/dependabot-common-0.133.5/lib/dependabot/clients/azure.rb:57:in fetch_default_branch’ from /vendor/ruby/2.6.0/gems/dependabot-common-0.133.5/lib/dependabot/file_fetchers/base.rb:442:in default_branch_for_repo' from /vendor/ruby/2.6.0/gems/dependabot-common-0.133.5/lib/dependabot/file_fetchers/base.rb:70:in commit’ from /vendor/ruby/2.6.0/gems/dependabot-common-0.133.5/lib/dependabot/file_fetchers/base.rb:359:in _full_specification_for' from /vendor/ruby/2.6.0/gems/dependabot-common-0.133.5/lib/dependabot/file_fetchers/base.rb:174:in _fetch_repo_contents’ from /vendor/ruby/2.6.0/gems/dependabot-common-0.133.5/lib/dependabot/file_fetchers/base.rb:159:in repo_contents' from /vendor/ruby/2.6.0/gems/dependabot-nuget-0.133.5/lib/dependabot/nuget/file_fetcher.rb:184:in csproj_file’ from /vendor/ruby/2.6.0/gems/dependabot-nuget-0.133.5/lib/dependabot/nuget/file_fetcher.rb:55:in project_files' from /vendor/ruby/2.6.0/gems/dependabot-nuget-0.133.5/lib/dependabot/nuget/file_fetcher.rb:28:in fetch_files’ from /vendor/ruby/2.6.0/gems/dependabot-common-0.133.5/lib/dependabot/file_fetchers/base.rb:64:in files' from ./update-script.rb:155:in <main>’ Using ‘[OrganisationName].visualstudio.com’ as hostname Fetching nuget dependency files for [OrganisationName]/[Project name]/_git/[Repo name] Targeting ‘default’ branch under ‘/’ directory Using ‘auto’ versioning strategy ##[debug]Exit code 1 received from tool ‘/usr/bin/docker’ ##[debug]STDIO streams have closed for tool ‘/usr/bin/docker’ ##[debug]task result: Failed ##[error]The process ‘/usr/bin/docker’ failed with exit code 1 `

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
verycrispycommented, Mar 16, 2021

@mburumaxwell We used both URL’s to access DevOps, but the toggle on the organization settings was not set to use the new URL. image Now I’ve set the toggle to use the new URL and now the Dependabot extension does work! So maybe this can be fixed in the code? Or maybe it can be put in the documentation somewhere? I think there will be others that didn’t change the toggle that will run into issues. I hope this solution helps.

1reaction
mburumaxwellcommented, Apr 15, 2021

@MikeAtETI , @michael-letcher the only way dependabot will work with Azure DevOps repositories is by using the new organization URL. Toggling this on does not affect the old URLs, I can still access ours via the old hostname. Some of our old repositories still use the old URL format for private feeds.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dependabot::RepoNotFound · Issue #362
Hi All, We are attempting to run dependabot against an Azure DevOps GIT repository to no avail. Any assistance would be greatly appreciated....
Read more >
Dependabot error with Bitbucket server Clients
I have tried dependabot-script with Azure devops and had no big hurdles (I noticed Dependabot throws error repo not found when the I...
Read more >
Azure Pipelines and Dependabot - Rick Roché
This is an awesome tool to save you time and I find it makes keeping your dependencies up to date really easy. Integration...
Read more >
Documentation for dependabot-common (0.113.7)
A. Azure (Dependabot::PullRequestCreator); Azure (Dependabot::Clients). B. Base (Dependabot::FileFetchers); Base (Dependabot::UpdateCheckers) ...
Read more >
Keeping your dependencies updated with Azure Pipelines ...
Regularly updating your package dependencies is one of the recommended ways of ensuring your software is up to date and secure.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found