Realm.Sync.User.login issue. its always throw an error 'type error:network request failed'

cloud

#1

Realm.Sync.User.login issue. its always throw an error ‘type error:network request failed’


#2

Please provide more info.


#3

Hi,

following is the code snippet.

var _credential = Realm.Sync.Credentials.usernamePassword(‘username’, ‘password’);
Realm.Sync.User.login(SERVER_URL, _credential)
.then((user) => {
const config = user.createConfiguration({
path: ‘Testdb.realm’,
sync: {
user: user,
url: “realms://myurl.us1a.cloud.realm.io:/TestROS”,
fullSynchronization: false,
//error: err => console.log(err)
},
schema: [Project, Item]
});
}).catch(error => {
alert(error);
});

Note: this code was working perfectly till last friday 04/Jan/2019