# UPM refresh with Error Request failed with status code \[405\]

**URL:** <https://discussions.unity.com/t/upm-refresh-with-error-request-failed-with-status-code-405/838702>\
**Category:** Package Manager\
**Tags:** Package-Manager\
**Created:** [April 28, 2021, 9:50am UTC](https://discussions.unity.com/t/upm-refresh-with-error-request-failed-with-status-code-405/838702 "2021-04-28T09:50:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vkhylchuk](https://avatars.discourse-cdn.com/v4/letter/v/2bfe46/32.png) [@vkhylchuk](https://discussions.unity.com/u/vkhylchuk)\
**Post date:** [April 28, 2021, 9:50am UTC](https://discussions.unity.com/t/upm-refresh-with-error-request-failed-with-status-code-405/838702/1 "2021-04-28T09:50:16Z")

</div>

Since Unity 2019.4 UPM tries to update list of packages and can use “…/-/v1/search…” request.  
If manifest.json contains github package registry ([https://npm.pkg.github.com/](https://npm.pkg.github.com/)) UPM will show nexterror:

```csharp
Cannot perform upm operation: Request [GET https://npm.pkg.github.com/@XXXXXXX/-/v1/search?text=com.YYYYYY&from=0&size=250] failed with status code [405] [NotFound]

```

There is a post on forum (from Unity person) that contains reason why UPM can’t load packages: [Using GitHub Packages Registry with Unity Package Manager](https://discussions.unity.com/t/784073)

> [@](#):
>
> Even if your Github Packages registry-based scoped registry is correctly configured, packages won’t show up in the Package Manager UI’s All section. GitHub doesn’t support any of the NPM search API endpoints (/-/all or /-/v1/search).

Question is:  
How to prevent UPM from (/-/all or /-/v1/search) requests to particular registries?

---

<div class="post-metadata">

**Author:** ![UnityMaru](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/unitymaru/32/44206_2.png) [@UnityMaru](https://discussions.unity.com/u/UnityMaru)\
**Post date:** [May 13, 2021, 12:25pm UTC](https://discussions.unity.com/t/upm-refresh-with-error-request-failed-with-status-code-405/838702/2 "2021-05-13T12:25:40Z")

</div>

Hey there.

Unfortunately, this is not possible, we don’t distinguished between registries and their configurations and their limitations.

As discussed in other threads, GitHub Packages registries with the Unity Package Manager are not officially supported. Sometimes, they might work but GitHub breaks it from time to time, which is why we don’t recommend users to use them.

The registry used by yourself should be NPM compatible. We don’t explicitly list the features from NPM we expect the registry to implement, but having at least on search API point is expected.
