Skip to content

HTTP load failed, 0/0 bytes (error code: -1200 [3:-9816]) #1263

@jobscz

Description

@jobscz

iOS SDK Version : v2025-01
Code :
`
private init() {
client = Graph.Client(shopDomain: self.shopDomain, apiKey: self.apiKey,locale: self.language)
}

// 获取商品列表
///在我们的示例自定义店面中,我们希望显示一个包含多个产品预览的系列。以下查询请求前 10 个系列以及每个系列中的前 10 个产品。
func products(completion: @escaping (Result<[Storefront.Product], Error>) -> Void) {
    let query = Storefront.buildQuery { $0
        .collections(first: 10) { $0
            .nodes { $0
                .id()
                .title()
                .products(first: 10) { $0
                    .nodes { $0
                        .id()
                        .title()
                        .productType()
                        .description()
                    }
                }
            }
        }
    }

    let task = client.queryGraphWith(query) { response, error in
        if let collections = response?.collections.nodes {
            collections.forEach { collection in
                let products = collection.products.nodes
                products.forEach { product in
                    self.dPrint("products","\(product.title)")
                }
            }
        }
    }
    task.resume()
}
`

log:
Task <22F2976D-BFD9-4FF5-B8CE-BAFD2D488229>.<1> HTTP load failed, 0/0 bytes (error code: -1200 [3:-9816])
2025-03-25 11:30:47.786187+0800 HiCar[1517:37179] Task <22F2976D-BFD9-4FF5-B8CE-BAFD2D488229>.<1> finished with error [-1200] Error Domain=NSURLErrorDomain Code=-1200 "发生了SSL错误,无法建立与该服务器的安全连接。" UserInfo={NSErrorFailingURLStringKey=https://qnuuug-pm.myshopify.com/api/2025-01/graphql, NSLocalizedRecoverySuggestion=您仍要连接此服务器吗?, _kCFStreamErrorDomainKey=3, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <22F2976D-BFD9-4FF5-B8CE-BAFD2D488229>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <22F2976D-BFD9-4FF5-B8CE-BAFD2D488229>.<1>"
), NSLocalizedDescription=发生了SSL错误,无法建立与该服务器的安全连接。, NSErrorFailingURLKey=https://qnuuug-pm.myshopify.com/api/2025-01/graphql, NSUnderlyingError=0x281c39590 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, _kCFNetworkCFStreamSSLErrorOriginalValue=-9816, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9816, _NSURLErrorNWPathKey=satisfied (Path is satisfied), viable, interface: en0, ipv4, dns}}, _kCFStreamErrorCodeKey=-9816}

I don't know what causes this problem? I have contacted the official technical support, and he suggested to come here or go to the community to find a solution. Does anyone know how to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions