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

Local and Authenticated NuGet source break Package Restore #60

Open
wldevries opened this issue Jul 17, 2022 · 12 comments
Open

Local and Authenticated NuGet source break Package Restore #60

wldevries opened this issue Jul 17, 2022 · 12 comments

Comments

@wldevries
Copy link

The machine learning notebooks reference Microsoft.ML version 2.0.0-preview.22356.1 from a private Azure DevOps server. This preview version of the Microsoft.ML package is not available from nuget.org making it hard to run the notebooks.

PackageManagement Error 3217 Invalid URI: The format of the URI could not be determined.

@JakeRadMSFT
Copy link
Contributor

JakeRadMSFT commented Jul 17, 2022

@wldevries they’re all public feeds. It is azure dev ops but it’s a public feed of our daily builds.

Can you share a screenshot of what you’re seeing?

sharing the notebook would be helpful too!

@wldevries
Copy link
Author

image
This is what I'm seeing. Note that I'm using Notebook Editor in Visual Studio Pro 2022.

@JakeRadMSFT
Copy link
Contributor

That's so strange ..

What happens when you visit https://pkgs.dev.azure.com/dnceng/public/_packaging/MachineLearning/nuget/v3/index.json in your browser?

@JakeRadMSFT
Copy link
Contributor

@michaelgsharp is there any reason why this feed might be having issues?

@wldevries
Copy link
Author

That url returns a json, but most of the links in there return "The resource cannot be found."

@JakeRadMSFT
Copy link
Contributor

@wldevries - can you check your NuGet configs to see what other feeds are in there?

They're usually at these locations:

%appdata%\NuGet\NuGet.Config
%ProgramFiles(x86)%\NuGet\Config

@wldevries
Copy link
Author

I have some local directories, a local server and the following official source declared:

<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />

@JakeRadMSFT
Copy link
Contributor

Can you try removing any local directories and servers temporarily?

I think this is a bug on our end but I want to try to understand what the problem is.

@wldevries
Copy link
Author

It seems having the local server in the nuget config caused the problem. Removing that and leaving the local sources in made it work.

I also had this official source in, not sure what it does. It did not cause the issue though.

    <add key="Microsoft Visual Studio Offline Packages" value="C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\" />

@JakeRadMSFT
Copy link
Contributor

Thanks for trying that out and reporting back! I'll see if we can catch that better and give a better error message.

@JakeRadMSFT
Copy link
Contributor

@wldevries - are there any special characters in the path that didn't work?

It might be related to: dotnet/fsharp#12401

@JakeRadMSFT JakeRadMSFT changed the title Referenced Microsoft.ML preview package not accessible Local NuGet soure breaks Package Restore Jul 19, 2022
@JakeRadMSFT JakeRadMSFT changed the title Local NuGet soure breaks Package Restore Local NuGet source breaks Package Restore Jul 19, 2022
@TechInceptions
Copy link

It's not only local Nuget that is the problem:
image

My Azure Dev-Ops hosted nuget feed throws a 401.

Had to uncheck it and restart VS 2022 before I could run the 1st couple of steps in the notebook

@JakeRadMSFT JakeRadMSFT changed the title Local NuGet source breaks Package Restore Local and Authenticated NuGet source break Package Restore Jul 19, 2022
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

3 participants