HarmonyOS 网络请求报error code: 2300056, message: Failure when receiving data from the peer?

post请求接口,返回:error code: 2300056, message: Failure when receiving data from the peer错误,抓包发现服务器返回正常。

阅读 622
1 个回答

chunked格式HarmonyOS是支持的,网络请求错误原因是请求头中也需要设置transfer-encoding:chunked。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进