AshMartian/cybertruck

BestHTTP error

Closed this issue · 1 comments

When built to iOS / Android

{
	"tid": 1,
	"div": "PollingTransport",
	"msg": "ParseResponse",
	"ex": [
		{
			"msg": "Default constructor not found for type BestHTTP.SocketIO3.HandshakeData",
			"stack": "  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x00000] in <00000000000000000000000000000000>:0 \n  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, 
            System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00000] in <00000000000000000000000000000000>:0 \n  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, 
            System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00000] in <00000000000000000000000000000000>:0 \n  at System.Activator.CreateInstance 
            (System.Type type, System.Boolean nonPublic) [0x00000] in <00000000000000000000000000000000>:0 \n  at System.Activator.CreateInstance (System.Type type) [0x00000] in <00000000000000000000000000000000>:0 \n  at BestHTTP.JSON.LitJson.JsonMapper.ReadValue 
            (System.Type inst_type, BestHTTP.JSON.LitJson.JsonReader reader) [0x00000] in <00000000000000000000000000000000>:0 \n  at BestHTTP.JSON.LitJson.JsonMapper.ToObject[T] (System.String json) [0x00000] in <00000000000000000000000000000000>:0 \n  at 
            BestHTTP.SocketIO3.Transports.PollingTransport.ParseResponse (BestHTTP.HTTPResponse resp) [0x00000] in <00000000000000000000000000000000>:0 \n  at BestHTTP.SocketIO3.Transports.PollingTransport.OnRequestFinished 
            (BestHTTP.HTTPRequest req, BestHTTP.HTTPResponse resp) [0x00000] in <00000000000000000000000000000000>:0 \n  at BestHTTP.OnRequestFinishedDelegate.Invoke (BestHTTP.HTTPRequest originalRequest, BestHTTP.HTTPResponse response) [0x00000] in <00000000000000000000000000000000>:0 \n 
            at BestHTTP.Core.RequestEventHelper.HandleRequestStateChange (BestHTTP.Core.RequestEventInfo event) [0x00000] in <00000000000000000000000000000000>:0 \n  at BestHTTP.Core.RequestEventHelper.ProcessQueue () [0x00000] in <00000000000000000000000000000000>:0 \n 
            at BestHTTP.HTTPManager.OnUpdate () [0x00000] in <00000000000000000000000000000000>:0 \n  at BestHTTP.HTTPUpdateDelegator.Update () [0x00000] in <00000000000000000000000000000000>:0 "
		}
	],
	"stack": "  at SocketIO3.Transports.PollingTransport.ParseResponse (HTTPResponse resp) <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0   at SocketIO3.Transports.PollingTransport.OnRequestFinished (HTTPRequest req, HTTPResponse resp) <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0   at OnRequestFinishedDelegate.Invoke (HTTPRequest originalRequest, HTTPResponse response) <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0   at Core.RequestEventHelper.HandleRequestStateChange (Core.RequestEventInfo event) <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0   at Core.RequestEventHelper.ProcessQueue () <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0   at HTTPManager.OnUpdate () <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0   at HTTPUpdateDelegator.Update () <0x00000 + 0xffffffff> 0 in <00000000000000000000000000000000>:0 ",
	"ctxs": [
		{
			"TypeName": "SocketManager",
			"Hash": -1929586552
		}
	],
	"t": 637723652229751200,
	"ll": "Exception",
	"bh": 1
}

A code stripping issue. Added this to link.xml and works perfect!

<linker>

                <assembly fullname="BestHTTP" >

                                <!--Preserve all types in a namespace-->

                                <type fullname="BestHTTP.SocketIO3*" />

                </assembly>

</linker>