ios - Alamofire Swift 4 无聊的 SSL

标签 ios swift upload alamofire

我使用 Alamofire 和 Swift 进行一些文件上传。该文件上传总是正确的,但我在控制台中仍然有一些错误。有谁知道如何解决这个问题吗?

我正在寻找一些解决方案,但没有任何帮助。

我的代码部分如下所示:

Alamofire.upload(multipartFormData:{ multipartFormData in
        multipartFormData.append(recordedAudio!, withName: "audiofile", fileName: "audio.caf", mimeType: "audio/caf")},
                     usingThreshold:UInt64.init(),
                     to:"https://www.example.com/test.php",
                     method:.post,
                     headers:["User Name": "Janis"],
                     encodingCompletion: { encodingResult in
                        switch encodingResult {
                        case .success(let upload, _, _):
                            upload.responseString { response in
                                debugPrint(response)
                            }
                        case .failure(let encodingError):
                            print(encodingError)
                        }
    })

错误(例如上传一次时出现 20 倍相同的错误):

2018-05-01 15:58:13.570235+0200 appName[4764:1555915] [BoringSSL] Function boringssl_session_errorlog: line 2878 [boringssl_session_write] SSL_ERROR_SYSCALL(5): operation failed externally to the library

最佳答案

只是系统的虚假输出,您对此无能为力。

关于ios - Alamofire Swift 4 无聊的 SSL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50117894/

相关文章:

html - 我可以根据模式检测运行不同版本的网站吗

ios - 如何强制在 WebView 中单击的任何链接在 Safari 中打开?

asp.net - 在IIS7/Win7 Pro上增加最大上传文件大小

file - 多个文件上传 blueimp “sequentialUploads = true” 不工作

PHP文件上传更改文件名保留扩展名

ios - 使用自定义UIControl自动调整UIScrollView内容偏移

ios - 像典型的聊天应用程序一样添加文本字段和发送按钮

swift - 使用 Swift 在一个函数中多次更新 Textview 文本

ios - 不显示横幅仅在收到推送通知时振动设备

ios - 获取 iCloud 名称和电子邮件 swift3