Same code works fine on Simulator when it occured an error,”Internet offline“,on device()

I setup an Apple Watch App.
It works fine on simulator but, when I run the app on a device, it always say "internet offline" on console when I use URLSession to fetch data.
the Wi-Fi is connected and works fine,my iPhone is connected with the same Wi-Fi。Any suggestions?
Code Block Swift
self.cancelable = URLSession.shared.dataTaskPublisher(for: self.chartRequest.asRequest())
            .retry(3)
            .subscribe(on: DispatchQueue.global())
            .map({ $0.data })
            .decode(type: [ChartEntry].self, decoder: JSONDecoder())
            .map({ data in  return .success(data) })
            .catch({ result in
                return Just.init(.failure(result))
            })
            .receive(on: RunLoop.main)
            .sink(receiveCompletion: { (_) in
                    print("receiveCompletion")
            }, receiveValue: { (data: Result) in
                
                switch data {
                case .success(let entries):
                    self.tickerResultJsonCount = entries.count
                    self.entries = entries.first?.data ?? []
                case .failure(let error):
                    self.entries = []
                    self.tickerResultJsonCount = 0
                    self.error = error
                }
                
            })


my code is like this
Same code works fine on Simulator when it occured an error,”Internet offline“,on device()
 
 
Q