I have a problem like the title here, but it only occurs in some mobile phones and some networks. It seems that it has little to do with the code level. How to solve it. When it is clear, some iOS 15 will appear, and iOS 13 does not have this problem.
urlsessiontask failed with error: a server with the specified hostname could not be found
You tagged wwdc2022-10079
on your post, does this mean that you are using the new DNSSEC APIs with URLSession
, for example requiresDNSSECValidation
?
If so, can you please add a sample of the code that you are using? If not then random HTTP errors without code changes usually result from the client talking to a downstream server that the client did not expect to, so I would consult with your server side team on these errors if they persist.