my-first-realm-app
my-first-realm-app copied to clipboard
incorrect auth url for android fullsync
Following directions for getting started: https://docs.realm.io/sync/getting-started-1/android-quick-start/step-1-my-first-realm-app
Updated Constants.java correctly, build and runs fine.
Then, attempt to login with a nickname
Expected Results
Expected to login successfully
Actual Results
SyncUser.logInAsync throws an error to the client
Stacktrace showed it was returning an empty header, so I checked the Constants file and realized it was trying to access the cloud via http instead of https which couldn't be right, so I made the change and that fixed it.
Code Sample
Changed this line in Constants.java from...
public static final String AUTH_URL = "http://" + INSTANCE_ADDRESS + "/auth";
to...
public static final String AUTH_URL = "https://" + INSTANCE_ADDRESS + "/auth";
Version of Realm and tooling
Realm version(s): Cloud / Realm Platform / Realm Sync
Android Studio / XCode version: 3.2.1
Which device OS version and device: Mac 10.13/6