SignalR 已识别的项目之一的格式无效

发布于 2025-01-20 03:54:09 字数 1306 浏览 0 评论 0原文

请告诉我,我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文