<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Cargo feed returning 500 Internal Server Error]]></title><description><![CDATA[<p dir="auto">We are using Proget 26.0.2 and have configured a Cargo feed connected to <a href="https://index.crates.io" rel="nofollow">https://index.crates.io</a>.<br />
From most crates it is behaving as expected, but we are having specific issues with the libssh2-sys crate.</p>
<p dir="auto">We are seeing behaviour where cargo build will error because Proget will return 500 Internal Server Error during the download:</p>
<pre><code>$ cargo build
...
error: failed to get `libssh2-sys` as a dependency of package `ssh2 v0.9.5`

Caused by:
  download of li/bs/libssh2-sys failed

Caused by:
  failed to get successful HTTP response from `https://&lt;PROGET_URL&gt;/repository/cargo-proxy/li/bs/libssh2-sys` (&lt;PROGET_IP&gt;), got 500
</code></pre>
<p dir="auto">We have managed to reproduce this issue with a few simple curl commands.</p>
<p dir="auto">First we download the crate information which returns 200 OK as expected:</p>
<pre><code>$ curl -I https://${PROGET_URL}/repository/cargo-proxy/li/bs/libssh2-sys
HTTP/1.1 200 OK
Server: nginx/1.31.1
Date: Thu, 04 Jun 2026 07:50:47 GMT
Content-Type: text/plain
Content-Length: 115448
Connection: keep-alive
Keep-Alive: timeout=5
Cache-Control: private
Last-Modified: Thu, 04 Jun 2026 07:50:47 GMT
X-ProGet-Version: 26.0.2.16
X-ProGet-Edition: enterprise
</code></pre>
<p dir="auto">Then we download the latest version of the crate which returns 200 OK as expected:</p>
<pre><code>$ curl -I https://${PROGET_URL}/cargo/cargo-proxy/crates/libssh2-sys/0.3.1/download
HTTP/1.1 200 OK
Server: nginx/1.31.1
Date: Thu, 04 Jun 2026 07:51:26 GMT
Content-Type: application/octet-stream
Content-Length: 582851
Connection: keep-alive
Keep-Alive: timeout=5
Cache-Control: private
Last-Modified: Sat, 01 Feb 2025 17:13:17 GMT
X-ProGet-Version: 26.0.2.16
X-ProGet-Edition: enterprise
Content-Disposition: attachment; filename="libssh2-sys-0.3.1.crate"
</code></pre>
<p dir="auto">But then when we try and download the crate information again, it returns 500 Internal Server Error which is not expected.</p>
<pre><code>$ curl -I https://${PROGET_URL}/repository/cargo-proxy/li/bs/libssh2-sys
HTTP/1.1 500 Internal Server Error
Server: nginx/1.31.1
Date: Thu, 04 Jun 2026 07:52:42 GMT
Content-Type: application/json
Content-Length: 1948
Connection: keep-alive
Keep-Alive: timeout=5
Cache-Control: private
Last-Modified: Thu, 04 Jun 2026 07:52:42 GMT
</code></pre>
<p dir="auto">The full error returned is as follows:</p>
<pre><code>$ curl -s https://${PROGET_URL}/repository/cargo-proxy/li/bs/libssh2-sys | jq -r '.errors[0].detail'
The given key was not present in the dictionary.
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at Inedo.ProGet.Feeds.Cargo.CargoMetadata.&lt;.ctor&gt;g__getDependency|3_4(KeyValuePair`2 dependency) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E655333\Src\src\ProGet\Feeds\Cargo\CargoMetadata.cs:line 152
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
   at Inedo.ProGet.WebApplication.FeedEndpoints.Cargo.CargoIndexHandler.ProcessRequestAsync(AhHttpContext context, WebApiContext apiContext, CargoFeed feed, String relativeUrl) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E655333\Src\src\ProGet\WebApplication\FeedEndpoints\Cargo\CargoIndexHandler.cs:line 106
   at Inedo.ProGet.WebApplication.FeedEndpoints.Cargo.CargoIndexHandler.ProcessRequestAsync(AhHttpContext context, WebApiContext apiContext, CargoFeed feed, String relativeUrl) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E655333\Src\src\ProGet\WebApplication\FeedEndpoints\Cargo\CargoIndexHandler.cs:line 89
   at Inedo.ProGet.WebApplication.FeedEndpoints.Cargo.CargoFeedHandler.ProcessRequestAsync(AhHttpContext context, WebApiContext apiContext, CargoFeed feed, String relativeUrl) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E655333\Src\src\ProGet\WebApplication\FeedEndpoints\Cargo\CargoFeedHandler.cs:line 107
   at Inedo.ProGet.WebApplication.FeedEndpoints.CanonicalFeedHandler`1.Inedo.Web.IHttpAsyncHandler.ProcessRequestAsync(AhHttpContext context) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E655333\Src\src\ProGet\WebApplication\FeedEndpoints\CanonicalFeedHandler.cs:line 85
</code></pre>
<p dir="auto">Going into the Cargo feed and clicking "Delete Cached Crate" temporarily fixes the issue but it happens again after the next download.</p>
]]></description><link>https://forums.inedo.com/topic/5771/cargo-feed-returning-500-internal-server-error</link><generator>RSS for Node</generator><lastBuildDate>Fri, 05 Jun 2026 22:52:09 GMT</lastBuildDate><atom:link href="https://forums.inedo.com/topic/5771.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 05 Jun 2026 00:48:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cargo feed returning 500 Internal Server Error on Fri, 05 Jun 2026 00:48:48 GMT]]></title><description><![CDATA[<p dir="auto">We are using Proget 26.0.2 and have configured a Cargo feed connected to <a href="https://index.crates.io" rel="nofollow">https://index.crates.io</a>.<br />
From most crates it is behaving as expected, but we are having specific issues with the libssh2-sys crate.</p>
<p dir="auto">We are seeing behaviour where cargo build will error because Proget will return 500 Internal Server Error during the download:</p>
<pre><code>$ cargo build
...
error: failed to get `libssh2-sys` as a dependency of package `ssh2 v0.9.5`

Caused by:
  download of li/bs/libssh2-sys failed

Caused by:
  failed to get successful HTTP response from `https://&lt;PROGET_URL&gt;/repository/cargo-proxy/li/bs/libssh2-sys` (&lt;PROGET_IP&gt;), got 500
</code></pre>
<p dir="auto">We have managed to reproduce this issue with a few simple curl commands.</p>
<p dir="auto">First we download the crate information which returns 200 OK as expected:</p>
<pre><code>$ curl -I https://${PROGET_URL}/repository/cargo-proxy/li/bs/libssh2-sys
HTTP/1.1 200 OK
Server: nginx/1.31.1
Date: Thu, 04 Jun 2026 07:50:47 GMT
Content-Type: text/plain
Content-Length: 115448
Connection: keep-alive
Keep-Alive: timeout=5
Cache-Control: private
Last-Modified: Thu, 04 Jun 2026 07:50:47 GMT
X-ProGet-Version: 26.0.2.16
X-ProGet-Edition: enterprise
</code></pre>
<p dir="auto">Then we download the latest version of the crate which returns 200 OK as expected:</p>
<pre><code>$ curl -I https://${PROGET_URL}/cargo/cargo-proxy/crates/libssh2-sys/0.3.1/download
HTTP/1.1 200 OK
Server: nginx/1.31.1
Date: Thu, 04 Jun 2026 07:51:26 GMT
Content-Type: application/octet-stream
Content-Length: 582851
Connection: keep-alive
Keep-Alive: timeout=5
Cache-Control: private
Last-Modified: Sat, 01 Feb 2025 17:13:17 GMT
X-ProGet-Version: 26.0.2.16
X-ProGet-Edition: enterprise
Content-Disposition: attachment; filename="libssh2-sys-0.3.1.crate"
</code></pre>
<p dir="auto">But then when we try and download the crate information again, it returns 500 Internal Server Error which is not expected.</p>
<pre><code>$ curl -I https://${PROGET_URL}/repository/cargo-proxy/li/bs/libssh2-sys
HTTP/1.1 500 Internal Server Error
Server: nginx/1.31.1
Date: Thu, 04 Jun 2026 07:52:42 GMT
Content-Type: application/json
Content-Length: 1948
Connection: keep-alive
Keep-Alive: timeout=5
Cache-Control: private
Last-Modified: Thu, 04 Jun 2026 07:52:42 GMT
</code></pre>
<p dir="auto">The full error returned is as follows:</p>
<pre><code>$ curl -s https://${PROGET_URL}/repository/cargo-proxy/li/bs/libssh2-sys | jq -r '.errors[0].detail'
The given key was not present in the dictionary.
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at Inedo.ProGet.Feeds.Cargo.CargoMetadata.&lt;.ctor&gt;g__getDependency|3_4(KeyValuePair`2 dependency) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E655333\Src\src\ProGet\Feeds\Cargo\CargoMetadata.cs:line 152
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
   at Inedo.ProGet.WebApplication.FeedEndpoints.Cargo.CargoIndexHandler.ProcessRequestAsync(AhHttpContext context, WebApiContext apiContext, CargoFeed feed, String relativeUrl) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E655333\Src\src\ProGet\WebApplication\FeedEndpoints\Cargo\CargoIndexHandler.cs:line 106
   at Inedo.ProGet.WebApplication.FeedEndpoints.Cargo.CargoIndexHandler.ProcessRequestAsync(AhHttpContext context, WebApiContext apiContext, CargoFeed feed, String relativeUrl) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E655333\Src\src\ProGet\WebApplication\FeedEndpoints\Cargo\CargoIndexHandler.cs:line 89
   at Inedo.ProGet.WebApplication.FeedEndpoints.Cargo.CargoFeedHandler.ProcessRequestAsync(AhHttpContext context, WebApiContext apiContext, CargoFeed feed, String relativeUrl) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E655333\Src\src\ProGet\WebApplication\FeedEndpoints\Cargo\CargoFeedHandler.cs:line 107
   at Inedo.ProGet.WebApplication.FeedEndpoints.CanonicalFeedHandler`1.Inedo.Web.IHttpAsyncHandler.ProcessRequestAsync(AhHttpContext context) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E655333\Src\src\ProGet\WebApplication\FeedEndpoints\CanonicalFeedHandler.cs:line 85
</code></pre>
<p dir="auto">Going into the Cargo feed and clicking "Delete Cached Crate" temporarily fixes the issue but it happens again after the next download.</p>
]]></description><link>https://forums.inedo.com/post/19762</link><guid isPermaLink="true">https://forums.inedo.com/post/19762</guid><dc:creator><![CDATA[joris.guex]]></dc:creator><pubDate>Fri, 05 Jun 2026 00:48:48 GMT</pubDate></item><item><title><![CDATA[Reply to Cargo feed returning 500 Internal Server Error on Fri, 05 Jun 2026 10:25:47 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://forums.inedo.com/uid/3856">@joris-guex</a> ,</p>
<p dir="auto">Thanks for the detailed information; I was able to reproduce the error pretty easily thanks to that.</p>
<p dir="auto">It seems to be happening when parsing a Dependency entry in the <code>.toml</code> file (missing <code>version</code>), but I can't figure out why since the <code>version</code> appears to be there. It also shouldn't cause this beahvior for this particular error.</p>
<p dir="auto">In any case, we'll get it fixed via <a href="https://issues.inedo.com/issue/PG-3303" class="inedo-link inedo-link-pg" rel="nofollow">PG-3303</a> in an upcoming maintenance release. !</p>
<p dir="auto">Cheers,<br />
Alana</p>
]]></description><link>https://forums.inedo.com/post/19763</link><guid isPermaLink="true">https://forums.inedo.com/post/19763</guid><dc:creator><![CDATA[atripp]]></dc:creator><pubDate>Fri, 05 Jun 2026 10:25:47 GMT</pubDate></item></channel></rss>