Error on accessing Assets: Fail to call Unity Unity ID to get auth code

Hi All,

I am not able to access the assets. It is giving the auth error. I have tried all the possible work around found in the internet like signing out and signing in, clearing the cache. But nothing worked. I am running the unity in Ubuntu 24.04 LTS, I don’t have any vpn/antivirus application running on my computer. The error is as follows.

[Package Manager Window] Error while getting auth code: System.InvalidOperationException: Failed to call Unity ID to get auth code.
UnityEditor.AsyncHTTPClient:Done (UnityEditor.AsyncHTTPClient/State,int) (at /home/bokken/build/output/unity/unity/Editor/Mono/AsyncHTTPClient.cs:248)

Thank you so much for visiting this topic. Any kind of help/hint are highly appreciated.

Best regards,
Pradeep

Hi Robert,

Thank you so much for the suggestion.

I don’t have any network proxies .

Regarding switching the Package Manager view from “My Assets” to “All Assets” or “In Project” . I don’t have a “All assets” in the Package Manager but I do have a “In Project”. If I switch to “In Project” I shows the packages in the project and it is working fine. But how can I access the assets if I switch to “In Project”

Best regards,
Pradeep

Hello,

The error seems to hint at some authentication token issue, which can be tricky on Linux environments like Ubuntu. You’ve already tried the usual suspects, so kudos for covering those bases.

One thing to check: does your ~/.config/unity3d/ folder have any odd permission settings that could prevent Unity from saving or accessing auth tokens? Also, running Unity Hub as sudo might help eliminate privilege-related quirks. If all else fails, sometimes a quick swap to a different network or even toggling a DNS setting can work magic

I thought I had the same problem. Same error message yes, but in my case I had a proxy set and turning it off resolved the error.