能够连接到对象服务器,但不能打开领域

时间:2016-10-07 14:44:57

标签: linux amazon-web-services realm realm-mobile-platform

晚上好。

1首先,爱你的工作。

我在osx el capitan上使用最新版本的realm-browser。我可以连接到我的aws对象服务器并查看领域,但每当我尝试打开它时,它会因超级有用的错误消息而死: image

现在我在这里发布移动平台,因为我也有问题从我的ios项目连接到它,这让我觉得我有一个服务器端问题。这是服务器端日志显示的内容: image

xcode日志显示: image

我确信我可能做错了什么,但不知道是什么。这是我所做的事情的叙述性概述: 1. spun up ami realm-object-server-hvm-1474909717(ami-80347097) 2.进行任务演示,稍微修改认证部分,阅读:

func setupRealm() {
        let username = "Capt.Awesome@codefriar.com"
        let password = "Sup3rS3kr3tPassw0rd;"

        User.authenticate(with: Credential.usernamePassword(username: username,
                                                            password: password,
                                                            actions: []),
                          server: URL(string: "http://ec2-100.40.40.40.compute-1.amazonaws.com:9080")!,
                          onCompletion: { user, error in
            guard let user = user else {
                fatalError(String(describing: error))
            }

            // Open Realm
            let configuration = Realm.Configuration(
                syncConfiguration: (user, URL(string: "realm://ec2-100.40.40.40.compute-1.amazonaws.com/~/foo")!)
            )
            self.realm = try! Realm(configuration: configuration)
            print("Realm Setup")

            // Notify us when Realm changes
            self.notificationToken = self.realm.addNotificationBlock { _ in
                print ("Realm Update occured")
            }
        })
    }

帮助我obi-won-realnobi你是我唯一的希望!

1 个答案:

答案 0 :(得分:0)

我最近一直在尝试使用ROS,我让它反对本地托管的ROS,但尚未获得AWS托管服务。

我注意到您的配置的域名网址中没有列出端口...