Your tests might fail if your app uses certificate pinning and you have enabled network logs tracking. This is because BrowserStack uses an MITM proxy to capture the network logs, causing network requests between the app and pinned hosts to fail.
BrowserStack provides additional capabilities to fix certificate pinning errors. Using these capabilities, you can bypass BrowserStack’s MITM proxy while making requests to certificate-pinned remote hosts. You checkout the implementation details here.