SignalR 已识别的项目之一的格式无效
请告诉我,我正在使用 SignalR + Unity 捆绑包制作游戏。服务器正在运行,当您在计算机上运行它时,android游戏正在运行,当您将其传输到设备本身时,我在 StartAsync 方法中收到错误:
Error: One of the identified items was in an invalid format.
Part StackTrace: System.Net.Http.Headers.HttpHeaders.AddInternal (System.String name, System.Collections.Generic.IEnumerable`1[T] values, System.Net.Http.Headers.HeaderInfo headerInfo, System.Boolean ignoreInvalid) (at <efff4cb93af94c0c950db61b78368b54>:0)
System.Net.Http.Headers.HttpHeaders.Add (System.String name, System.Collections.Generic.IEnumerable`1[T] values) (at <efff4cb93af94c0c950db61b78368b54>:0)
System.Net.Http.Headers.HttpHeaders.Add (System.String name, System.String value) (at <efff4cb93af94c0c950db61b78368b54>:0)
Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.CreateHttpClient () (at <fc48509a267447ccb7af409e5c632056>:0)
Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.set_RemoteEndPoint (System.Net.EndPoint value) (at <fc48509a267447ccb7af409e5c632056>:0)
Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory+<ConnectAsync>d__3.MoveNext () (at <fc48509a267447ccb7af409e5c632056>:0)
Unity 2020.3.32 netstandart 2.0
SignalR version 6.0.3
我搜索在互联网上,他们说这个问题已解决,但我不明白如何解决。有人解决这个问题了吗?
please tell me, I'm making a game in a bundle of SignalR + Unity. The server is running, the android game is running when you run it on your computer, and when you transfer it to the device itself, I get an error in the StartAsync method:
Error: One of the identified items was in an invalid format.
Part StackTrace: System.Net.Http.Headers.HttpHeaders.AddInternal (System.String name, System.Collections.Generic.IEnumerable`1[T] values, System.Net.Http.Headers.HeaderInfo headerInfo, System.Boolean ignoreInvalid) (at <efff4cb93af94c0c950db61b78368b54>:0)
System.Net.Http.Headers.HttpHeaders.Add (System.String name, System.Collections.Generic.IEnumerable`1[T] values) (at <efff4cb93af94c0c950db61b78368b54>:0)
System.Net.Http.Headers.HttpHeaders.Add (System.String name, System.String value) (at <efff4cb93af94c0c950db61b78368b54>:0)
Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.CreateHttpClient () (at <fc48509a267447ccb7af409e5c632056>:0)
Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.set_RemoteEndPoint (System.Net.EndPoint value) (at <fc48509a267447ccb7af409e5c632056>:0)
Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory+<ConnectAsync>d__3.MoveNext () (at <fc48509a267447ccb7af409e5c632056>:0)
Unity 2020.3.32 netstandart 2.0
SignalR version 6.0.3
I searched on the Internet, they say that this problem was fixed, but I don't understand how. Has someone solved this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论