html52.com
我爱小程序-开发者交流社区

通过code获取openid本地环境正常获取,服务端报 由于远程方已关闭传输流,身份验证失败

框架类型 问题类型 操作时间 AppID
小程序 Bug 1天前 wx0c5f2f066fce983d

查询openid:System.Net.WebException: 基础连接已经关闭: 发送时发生错误。 ---> System.IO.IOException: 由于远程方已关闭传输流,身份验证失败。

   在 System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)

   在 System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)

   在 System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)

   在 System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)

   在 System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)

   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)

   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   在 System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)

   在 System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)

   在 System.Net.ConnectStream.WriteHeaders(Boolean async)

   --- 内部异常堆栈跟踪的结尾 ---

   在 System.Net.HttpWebRequest.GetResponse()

   在 BFS_API.Controllers.API.Login.LoginController.WxOpenid(String code)



这是啥问题啊,本地又没事。。。卧槽心态崩了,百度搜了一些解决方案,都没效果。。。

网友回复

老张:

云开发获取openid了解一下。

|G.XIAO|:

是服务端获取openId吗

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付