thmsndk / Screeps3D

A 3D client for the MMORTS Screeps.com
89 stars 17 forks source link

Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_CN_MISMATCH #252

Open wtfrank opened 1 month ago

wtfrank commented 1 month ago

At startup, the developer console prints: Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_CN_MISMATCH

Mono path[0] = 'D:/apps/screeps3d/Screeps3D_Data/Managed' Mono config path = 'D:/apps/screeps3d/MonoBleedingEdge/etc' PlayerConnection initialized from D:/apps/screeps3d/Screeps3D_Data (debug = 0) PlayerConnection initialized network socket : 0.0.0.0 55406 Multi-casting "[IP] 172.16.1.100 [Port] 55406 [Flags] 2 [Guid] 1362182751 [EditorId] 1010169653 [Version] 1048832 [Id] WindowsPlayer(filth) [Debug] 0 [PackageName] WindowsPlayer [ProjectName] Screeps3D" to [225.0.0.222:54997]... Started listening to [0.0.0.0:55406] PlayerConnection already initialized - listening to [0.0.0.0:55406] Initialize engine version: 2020.2.1f1 (270dd8c3da1c) [Subsystems] Discovering subsystems at path D:/apps/screeps3d/Screeps3D_Data/UnitySubsystems GfxDevice: creating device client; threaded=1 Direct3D: Version: Direct3D 11.0 [level 11.1] Renderer: NVIDIA GeForce GTX 1050 Ti (ID=0x1c82) Vendor: (null) VRAM: 3072 MB Driver: 31.0.15.4601 Begin MonoManager ReloadAssembly

Input initialized. Initialized touch support. UnloadTime: 1.959900 ms Resource Monitor started ShardInfoMonitor Started Found config at D:\apps\screeps3d\.config.yml HTTP: error (401), reason: HTTP/1.1 401 Unauthorized HTTP: error (401), reason: HTTP/1.1 401 Unauthorized X-RateLimit-Limit: 120 X-RateLimit-Remaining: 119 X-RateLimit-Reset: 1722703137 X-RateLimit-Limit: 120 X-RateLimit-Remaining: 118 X-RateLimit-Reset: 1722703137 X-RateLimit-Limit: 120 X-RateLimit-Remaining: 117 X-RateLimit-Reset: 1722703137 Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_CN_MISMATCH NullReferenceException: Object reference not set to an instance of an object. at Screeps_API.ScreepsLogin.UpdateServerVersionInfo (Screeps_API.IScreepsServer server, System.String str) [0x00218] in C:\Projects\Screeps3D\Assets\Scripts\Screeps_API\ScreepsLogin.cs:488 at Screeps_API.ScreepsLogin+<>c__DisplayClass32_0.b__0 (System.String str) [0x00001] in C:\Projects\Screeps3D\Assets\Scripts\Screeps_API\ScreepsLogin.cs:368 at Screeps_API.ScreepsHTTP+<>c__DisplayClass0_0.b__0 (UnityEngine.Networking.UnityWebRequest outcome) [0x002f4] in C:\Projects\Screeps3D\Assets\Scripts\Screeps_API\ScreepsHTTP.cs:153 at Screeps_API.ScreepsHTTP+d__1.MoveNext () [0x00094] in C:\Projects\Screeps3D\Assets\Scripts\Screeps_API\ScreepsHTTP.cs:174 at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <97e84941847a43018a1a5533f734534b>:0 (Filename: C:/Projects/Screeps3D/Assets/Scripts/Screeps_API/ScreepsLogin.cs Line: 488) HTTP: error (0), reason: Unknown Error NullReferenceException: Object reference not set to an instance of an object. at Screeps_API.ScreepsLogin.UpdateServerVersionInfo (Screeps_API.IScreepsServer server, System.String str) [0x00218] in C:\Projects\Screeps3D\Assets\Scripts\Screeps_API\ScreepsLogin.cs:488 at Screeps_API.ScreepsLogin+<>c__DisplayClass32_0.b__0 (System.String str) [0x00001] in C:\Projects\Screeps3D\Assets\Scripts\Screeps_API\ScreepsLogin.cs:368 at Screeps_API.ScreepsHTTP+<>c__DisplayClass0_0.b__0 (UnityEngine.Networking.UnityWebRequest outcome) [0x002f4] in C:\Projects\Screeps3D\Assets\Scripts\Screeps_API\ScreepsHTTP.cs:153 at Screeps_API.ScreepsHTTP+d__1.MoveNext () [0x00094] in C:\Projects\Screeps3D\Assets\Scripts\Screeps_API\ScreepsHTTP.cs:174 at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <97e84941847a43018a1a5533f734534b>:0 (Filename: C:/Projects/Screeps3D/Assets/Scripts/Screeps_API/ScreepsLogin.cs Line: 488) X-RateLimit-Limit: 120 X-RateLimit-Remaining: 116 X-RateLimit-Reset: 1722703137 _ENABLE_SPECTATE:False _ENABLE_SPECTATE_SEASON:False Curl error 28: Connection timed out after 2000 milliseconds Curl error 28: Connection timed out after 2000 milliseconds HTTP: error (0), reason: Request timeout HTTP: error (0), reason: Request timeout
mattordev commented 2 days ago

I'm getting this on first time setup, which, from what I can tell is making setup fail so I can't create the credentials file

wtfrank commented 2 days ago

fwiw I've been able to set up credentials from the UI in spite of this error