Jump to content
Guest andreif

Error when installing NuGet API package

Recommended Posts

Guest andreif

I’m having this error message, when trying to install CIAPI package via NuGet:

PM> install-package CIAPI.CS Install-Package : The package source named ‘CityIndex API [http://code.labs.cityindex.com/nuget/odata/v1/]’ is either invalid or n ot available and thus is currently unreachable. At line:1 char:16 + install-package <<<< CIAPI.CS

+ CategoryInfo          : NotSpecified: ( :) [install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.Cmdlets.InstallPackageCmdlet  

PS Probably, this is a conflict with my firewall/antivirus software (Outpost Security Suite)

Share this post


Link to post
Guest andreif

I’m getting this response:

<service xml:base="http://code.labs.cityindex.com/nuget/odata/v1/">
−
<workspace>
<atom:title>Default</atom:title>
−
<collection href="Packages">
<atom:title>Packages</atom:title>
</collection>
</workspace>
</service>

UPD I’ve made a new test project and package installation failed on the first attempt, but succeeded on the second. And the same result with another new test project.

Share this post


Link to post
Guest mrdavidlaing

I think this is an issue specific to your connection/firewall; as I’m currently able to connect to that url

If you manually browse to (say in Firefox): http://code.labs.cityindex.com/nuget/odata/v1/

Your should get back:

<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<service xml:base="http://code.labs.cityindex.com/nuget/odata/v1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns="http://www.w3.org/2007/app">
  <workspace>
    <atom:title>Default</atom:title>
    <collection href="Packages">
      <atom:title>Packages</atom:title>
    </collection>
  </workspace>
</service>

What result do you get in a browser?

Share this post


Link to post
Guest mrdavidlaing

I’m getting this response:

<service xml:base="http://code.labs.cityindex.com/nuget/odata/v1/">
−
<workspace>
<atom:title>Default</atom:title>
−
<collection href="Packages">
<atom:title>Packages</atom:title>
</collection>
</workspace>
</service>

UPD I’ve made a new test project and package installation failed on the first attempt, but succeeded on the second. And the same result with another new test project.

My best guess is that the NuGet server is taking a while to spin up; causing a timeout on your end. Your second request will get a cached response; avoiding the timeout.

Once the CIAPI.CS packages stabilise we’ll look to host them in the main NuGet feed. In the meantime you’re just going to have to get twice :–#

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×