Keep getting "Dependabot::RepoNotFound" and "Dependabot::Clients::Azure::NotFound"
See original GitHub issueI’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:
- Created 3 years ago
- Reactions:2
- Comments:10 (3 by maintainers)
Top GitHub Comments
@mburumaxwell We used both URL’s to access DevOps, but the toggle on the organization settings was not set to use the new URL. 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.
@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.