microsoft / clarity-apps

Repo for distributing Clarity Apps packages
MIT License
46 stars 2 forks source link

[BUG][iOS] Error while initializing session on a real device #63

Closed dawid-bytys-they closed 2 months ago

dawid-bytys-they commented 2 months ago

Describe the Bug I am receiving error while initializing a session on a real iOS device, however; on a simulator it works fine.

Repro Steps Honestly, I have no idea if it's my device's fault and don't know if it can be reproduced.

Expected Behavior It should initialize a session successfully.

Screenshots None.

Project Info o0hu85shfh

Platform/Framework Info

Additional Context

2024-09-09 20:51:56.888652+0200 MyApp[68191:19867679] Task .<6> finished with error [-1000] Error Domain=NSURLErrorDomain Code=-1000 "bad URL" UserInfo={_kCFStreamErrorCodeKey=22, NSUnderlyingError=0x282eed7a0 {Error Domain=kCFErrorDomainCFNetwork Code=-1000 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, dns, _kCFStreamErrorCodeKey=22, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask .<6>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask .<6>" ), NSLocalizedDescription=bad URL, NSErrorFailingURLStringKey=https://www.clarity.ms/tag/mobile/o0hu85shfh, NSErrorFailingURLKey=https://www.clarity.ms/tag/mobile/o0hu85shfh, _kCFStreamErrorDomainKey=1} 2024-09-09 20:51:56.940421+0200 MyApp[68191:19867290] [Clarity] D/ Capturing frame 1.

It is the only Clarity error from the console.

dawid-bytys-they commented 2 months ago

Closing. It was an issue with my custom DNS. It was blocking Clarity's URLs.