我在使用此 API 上传到服务器时收到此消息我正在上传音频文件和文本数据,如果我删除音频它工作正常我在 iOS 10 中收到此错误。在 iOS 10 以下它工作正常所有数据正在上传。
Error: The request timed out. 2016-11-11 10:17:26.263019 Smart Child Info[1407:423623] [] __tcp_connection_write_eof_block_invoke Write close callback received error: [89] Operation canceled
最佳答案
似乎你的请求超时了,试试(假设你正在使用 NSMutableURLRequest 并且你想要 120 秒的超时):
request.timeoutInterval = 120;
关于objective-c - __tcp_connection_write_eof_block_invoke 写入关闭回调收到错误 : [89] Operation canceled,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40541364/