【发布时间】:2016-02-16 06:50:00
【问题描述】:
我正在撤离正在下沉的 Parse 船。
- 将数据迁移到 MongoDB
- 在使用 api.parse.com 时测试与 MongoDB 的连接
- 在 Heroku \ AWS 上托管 Parse 服务器
- 通过访问服务器的 URL 并看到“我梦想成为网站”来测试服务器
- 更新了 AWS 和 Heroku 服务器的 appid、主密钥和 mongo uri
在我使用的应用委托中,
let config = ParseClientConfiguration(block:{ (ParseMutableClientConfiguration) -> Void in
ParseMutableClientConfiguration.applicationId = "APPID"
ParseMutableClientConfiguration.clientKey = "myClientKey"
ParseMutableClientConfiguration.server = "my AWS or Heroku server"
})
Parse.initializeWithConfiguration(config)
我尝试连接更新 MongoDB 数据库,出现以下错误,
[Error]: {"code":1,"message":"Internal server error."} (Code: 1, Version: 1.12.0)
Code=3840 "JSON text did not start with array or object and option to allow fragments not set."
感谢您的帮助,谢谢
【问题讨论】:
标签: swift mongodb heroku parse-platform