Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X
Votes
0
Found in
2019.4.9f1
2020.1.4f1
2020.2.0a21
2021.1.0a1
2021.2.0a4
Issue ID
1319585
Regression
Yes
PackageManager.Client.SearchAll(offlineMode: true) returns an error if user offline
UnityEditor.PackageManager.Client.SearchAll(offlineMode: true) returns an error saying Cannot connect to 'api.unity.com' (error code: ENOTFOUND) when the user is offline (no network). When offlineMode is true, this method is not supposed to reach out to the network so it should not fail when the user is offline.
Steps to reproduce
Disconnect from WiFi
Launch the Unity editor
Expected behaviour
The Package Manager Window, which calls Client.SearchAll, should report an error in the console saying Error searching for packages as well as the relevant Cannot perform upm operation log message which includes the reason why (2 messages total).
Actual behaviour
The Package Manager Window reports 2 errors in the console (4 messages total) for both Error searching for packages and Error searching for packages offline each with corresponding Cannot perform upm operation messages. This is because the Package Manager Window performs both an online search and an offline search on startup. When the user is offline, only the online search should fail.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "EndLayoutGroup: BeginLayoutGroup must be called first" error is thrown when changing Shader Precision Model from the Build Profiles window
- White artifacts/outlines are visible in the Garden Scene when viewing at meshes from a distance
- Shader warnings "Sprite-Unlit-Default" are thrown after building 2D Platrformer Microgame Template
- [Android] HLSL shader becomes corrupted when running on an Android device
- Missing spaces in "Welcome to VR Mutiplayer Template Project" Welcome Dialog window
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0a12
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.3f1
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.11f1
Resolution Note (fix version 2019.4):
Fixed in: 2019.4.28f1