Closed ajonno closed 6 years ago
oky doke so it seems that after restarting ROS - this issue for iOS (only) went away and i could connect to ROS & update the db, get sync, etc
however i really want to understand why, partic given that Droid was working fine both before and after the ROS re-start? hopefully ROS server logs can help with that, let me know what you recommend and ill do some digging.
@ajonno , in the email you sent, you said that you were not able to connect to ROS cloud or your self-hosted ROS. It sounds like you've restarted your self-hosted ROS and are not able to connect. Are you able to connect to your cloud instance via iOS now as well?
hey Matt, good point sorry i forgot about that Realm Cloud piece. I'll try that today and get back to you.
@mgeerling I tested it out and is working fine on Realm Cloud too. Pretty certain now I mis-configured something, so will close this ticket. Apologies and thanks for the prompt follow up.
Goals
login to ROS via iOS using RealmSwift 3.3
Expected Results
successful login
Actual Results
error thrown from the SyncUser.logIn method (note this is currently via HTTP)
Note: Realm Studio connects just fine to EC2 http://xx.yyy.ttt.cc:9080 (Contact me via email to get IP address)
Steps to Reproduce
I just installed and built (pods etc.) the Realm test project from here:
https://github.com/realm/my-first-realm-app/tree/master/ios
in
Constants.swift
made following changes:Podfile is this:
I also added the following to
info.plist
since we we're hitting an HTTP endpoint:Code Sample
see above. really very little change made to the Realm example project for iOS other than as noted above.
For the server side:
pm2 status
shows this:Version of Realm and Tooling
Realm Object Server Version: 3.0![image](https://user-images.githubusercontent.com/3005269/38463010-44b9b4d6-3b33-11e8-90e5-db094e7c0de8.png)
Flavor:
Server OS & Version: ? AWS, Ubuntu 16.04.4
Client SDK Version: ? 3.3
Client OS & Version: ? iOS 11
Logs
systemctl status realm-object-server.service
realm-object-server.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead)
sudo journalctl -u realm-object-server.service
-- No entries --
cat /var/log/realm-object-server.log
cat: /var/log/realm-object-server.log: No such file or directory