# Proxy Error when downloading package from group repository

## post by nicholas.rafanelli on Feb 7, 2024

I have a group repo called “chocolatey-all” which contains 2 members a hosted repository called “chocolatey-hosted” and a proxy repo called “chocolatey-proxy” which is a proxy for [https://community.chocolatey.org/api/v2/](https://community.chocolatey.org/api/v2/).

When I attempt to download the latest vmware-tools package from the chocolatey-all group repository using the following url

> [my-nexus-instance.net/repository/chocolatey-all/Packages()?$filter=(tolower(Id)%20eq%20'vmware-tools'](http://my-nexus-instance.net/repository/chocolatey-all/Packages()?$filter=(tolower(Id)%20eq%20%27vmware-tools%27))%20and%20IsLatestVersion&semVerLevel=2.0.0

I get the error below 90% of the time and the cpu on the server I’m hosting nexus on spikes

> Proxy Error  
> The proxy server received an invalid response from an upstream server.  
> The proxy server could not handle the request _[GET /repository/chocolatey-all/Packages()](https://nexus.rgare.net/repository/chocolatey-all/Packages())_.  
> Reason: **Error reading from remote server**

However when I run the same command against the proxy repository it works as expected.

> [my-nexus-instance.net/repository/chocolatey-proxyl/Packages()?$filter=(tolower(Id)%20eq%20'vmware-tools'](http://my-nexus-instance.net/repository/chocolatey-proxyl/Packages()?$filter=(tolower(Id)%20eq%20%27vmware-tools%27))%20and%20IsLatestVersion&semVerLevel=2.0.0

I’ve tried invalidating the cache on the group repo with no luck.

Version: nexus OSS 3.64.0-04

## post by mpiggott on Feb 7, 2024

Hi Nick, I think it would make sense to report this in [Issues · sonatype/nexus-public · GitHub](https://github.com/sonatype/nexus-public/issues)

## post by nicholas.rafanelli on Feb 7, 2024

Hey Matthew, thanks for the advice, will do

## post by steviecoaster on Feb 7, 2024

I put this on the Github issue as well, but posting here just to cover all bases:

I can’t reproduce your error, but as a very _stupid_ suggestion, could you drop the trailing `/` off of `https://community.chocolatey.org/api/v2` and try your test again please? I’m wondering if it’s cloudflare doing weird things with the traffic because of the trailing slash.

## post by nicholas.rafanelli on Feb 8, 2024

Hi Stephen thanks for your response! Unfortunately removing the trailing slash on `https://community.chocolatey.org/api/v2/` did not work

## post by steviecoaster on Feb 8, 2024

It was a long shot that I didn’t really expect to work. Is your proxy repro for sure setup to target Nuget v2? By default it’s Nuget v3. I’d expect a different error than what you’re seeing though if that were the case. This is bizarre!
