收藏
回答

小程序在手机端无法访问服务器接口,微信开发者工具,安卓端可以访问,是什么原因?

发布的微信小程序体验版本,使用小程序上的功能需要请求服务器接口,请求成功,但是接口返回的是错误的信息{"data":"Internal Server Error","profile":{"transportRttEstimate":45,"domainLookUpStart":1726975926905,"responseEnd":1726975927882,"sendBytesCount":1215,"redirectStart":0,"connectEnd":1726975927011,"protocol":"http/1.1","peerIP":"60.171.194.72","requestStart":1726975926905,"socketReused":false,"fetchStart":1726975926905,"SSLconnectionStart":1726975926957,"estimate_nettype":5,"httpRttEstimate":54,"throughputKbps":0,"SSLconnectionEnd":1726975927011,"downstreamThroughputKbpsEstimate":1961,"domainLookUpEnd":1726975926912,"responseStart":1726975927879,"redirectEnd":0,"rtt":44,"connectStart":1726975926912,"port":41856,"receivedBytedCount":196,"requestEnd":1726975927882,"usingHighPerformanceMode":false},"header":{"Server":"nginx","Connection":"keep-alive","Content-Length":"21","Date":"Sun, 22 Sep 2024 03:27:21 GMT","Content-Type":"text/plain; charset=utf-8"},"statusCode":500,"cookies":[],"accelerateType":"none","errMsg":"request:ok"}。小程序运行在微信开发者工具时,接口返回的是正确的信息,我改怎么解决这个问题呢?request域名已经把接口域名加上了,还是不能解决这个问题,很奇怪为什么会出现这种情况,我还需要做些什么才能解决这个问题呢?

回答关注问题邀请回答
收藏

1 个回答

  • Mr.Zhao
    Mr.Zhao
    09-22

    接口还需要登录啊

    09-22
    有用
    回复 1
    • 没脾气
      没脾气
      09-22
      嗯,谢谢你。问题解决了,是后端接口的问题,问题出在后端接口不支持处理我发送的8000音频采样率的音频,我在前端重新给录音组件设置了固定的音频采样率的值。
      09-22
      回复
登录 后发表内容