{"id":10864,"date":"2025-01-26T17:23:29","date_gmt":"2025-01-26T17:23:29","guid":{"rendered":"https:\/\/putridparrot.com\/blog\/?p=10864"},"modified":"2025-01-26T17:23:29","modified_gmt":"2025-01-26T17:23:29","slug":"error-nu1301-unable-to-load-the-service-index-for-source-https-api-nuget-org-v3-index-json","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/error-nu1301-unable-to-load-the-service-index-for-source-https-api-nuget-org-v3-index-json\/","title":{"rendered":"error NU1301: Unable to load the service index for source https:\/\/api.nuget.org\/v3\/index.json"},"content":{"rendered":"<p>I was running a docker build against a .NET Web API project, on a Windows OS machine connected to a VPN and I was getting the error <em>error NU1301: Unable to load the service index for source https:\/\/api.nuget.org\/v3\/index.json<\/em>.<\/p>\n<p>This fixed it for me&#8230;<\/p>\n<ul>\n<li>Open Docker Desktop<\/li>\n<li>Click the Settings button<\/li>\n<li>Click on the Docker Engine option<\/li>\n<li>Add a dns section to the JSON configuration, i.e.\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n{\r\n  &quot;dns&quot;: &#x5B;\r\n      &quot;8.8.8.8&quot;\r\n  ],\r\n  &quot;experimental&quot;: false\r\n}\r\n<\/pre>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I was running a docker build against a .NET Web API project, on a Windows OS machine connected to a VPN and I was getting the error error NU1301: Unable to load the service index for source https:\/\/api.nuget.org\/v3\/index.json. This fixed it for me&#8230; Open Docker Desktop Click the Settings button Click on the Docker Engine [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[102,66,53],"tags":[],"class_list":["post-10864","post","type-post","status-publish","format-standard","hentry","category-docker","category-nuget","category-windows"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/10864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=10864"}],"version-history":[{"count":1,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/10864\/revisions"}],"predecessor-version":[{"id":10865,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/10864\/revisions\/10865"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=10864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=10864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=10864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}