Open
Description
New Issue Checklist
- I have read and understood the CONTRIBUTING guide
- I have read the Documentation
- I have searched for a similar issue in the project and found none: Not sure if the same problem: Image are not showing SDWebImage#2858
Issue Info
Info | Value |
---|---|
Platform Name | ios |
Platform Version | 14.3 |
SDWebImage Version | 5.10.2 |
SDWebImageSwiftUI Version | 1.5.0 |
Integration Method | Swift Package |
Xcode Version | Xcode 12.3 |
Repro rate | all the time (100%) |
Repro with our demo prj | |
Demo project link |
Issue Description and Steps
I have a SwiftUI app using WebImage and I'm trying to load an image from one of our urls. The image required an Authorization header, so I set the header on app startup:
SDWebImageDownloader.shared.setValue("token", forHTTPHeaderField: "Authorization")
Added a couple breakpoints in SDWebImageDownloader and verified the Authorization header is added in the request. However, I am getting this error message every time:
Connection 1: TLS Client Certificates encountered error 1:89
Connection 1: encountered error(1:89)
These are some of my findings:
- Using an image from Google image works fine
- Verified our image server is using TLSv1.2
- Able to successfully load my server image using Postman
- Able to successfully load my server image using native Swift URLRequest
- Tried with SDWebImage with
.allowInvalidSSLCertificates
option but still get same TLS error - Tried debugging using Charles Proxy, but the moment I start recording, the images successfully come through using SDWebImage. If I delete the app (since SDWebImage is caching the image) and try again without Charles, I'm back to getting the TLS Certificate error.