Skip to content

Error: A server with the specified hostname could not be found #2028

Description

@jesus-mg-ios

Describe the bug
We're receiving a random error on some devices ErrorCode Code=10 "Error performing request.", please see more in additional context.
The thing is the error says that the path is satisfied. It's a little bit strange, I mean if the path is satisfied the host should be found. the source function is init(_:dnsChecker:) . Could be an error inside this function that makes it fail?

Thanks in advance. I really appreciate your hard work.

  1. Environment
    1. Platform: iOS
    2. SDK version: 4.13.3
    3. StoreKit 2 (disabled with useStoreKit2IfEnabled(false)) (Y/N): useStoreKit2IfEnabled(false)
    4. OS version: iOS 15.X
    5. Xcode version: 13.4.1
    6. How widespread is the issue. Percentage of devices affected. -
  2. Debug logs that reproduce the issue -
  3. Steps to reproduce, with a description of expected vs. actual behavior -
  4. Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

Additional context

readable_error_code: NETWORK_ERROR

Error Code: 10
source_function: init(_:dnsChecker:)

RevenueCat.ErrorCode.Error Domain=RevenueCat.ErrorCode Code=10 "Error performing request."
UserInfo={NSLocalizedDescription=Error performing request., source_file=RevenueCat/HTTPClient.swift:363, 
NSUnderlyingError=0x2805cea60 
{Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found."
 UserInfo={_kCFStreamErrorCodeKey=8,
 NSUnderlyingError=0x2805cf840 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "

NSUnderlyingError
Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found."
UserInfo={_kCFStreamErrorCodeKey=8,
 NSUnderlyingError=0x2805cf840 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" 
UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, dns, proxy, _kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12}},
_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <ID>.<35>,
_NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask < ID >.<35>" ),
NSLocalizedDescription=A server with the specified hostname could not be found., 
NSErrorFailingURLStringKey=https://api.revenuecat.com/v1/subscribers/{SubscriberID}, 
NSErrorFailingURLKey=https://api.revenuecat.com/v1/subscribers/{SubscriberID}, _kCFStreamErrorDomainKey=12}

Metadata

Metadata

Assignees

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