Getting "Network request failed" error on Android Emulator

Hi all,

I’m getting the following error when I try to authenticate a user in Realm.

[error] App: log_in_with_credentials failed: 0 message: request to https://realm.mongodb.com/api/client/v2.0/app/application-0-xxxxx/location failed, reason: Network request failed

I’m using the custom JWT Auth. I’ve tried email/password and anonymous login too, both of which produce the same error. The emulator can access the internet and grab a token from my auth endpoint but it fails to authenticate with Realm.

I do not get this when I use a physical device.