Hi
I’m making a simple get request to a server:
auto inputStream = juce::URL(url).createInputStream(juce::URL::InputStreamOptions(juce::URL::ParameterHandling::inAddress)
.withConnectionTimeoutMs(500)
.withNumRedirectsToFollow(5)
.withStatusCode(&statusCode));
This works on Windows. I’ve tried on 5 different Macs and it works as well. But on some Macs (from my customers), it fails (function returns nullptr, statusCode is zero) with the following error:
Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x600002b91230 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <C8DD3EF7-DEDB-49A9-9875-3F94A775B1AF>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <C8DD3EF7-DEDB-49A9-9875-3F94A775B1AF>.<1>"
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://fw.simntonic.com/?deviceid=16, NSErrorFailingURLKey=https://fw.simntonic.com/?deviceid=16, _kCFStreamErrorDomainKey=4}
It’s a mystery, I asked all customers who had the issue and they use no VPN, no special proxy, and accessing the same URL from a browser works perfectly fine.
Any thoughts? Thank you!