【问题标题】:"Internal server error" when migrating Parse to Heroku/AWS将 Parse 迁移到 Heroku/AWS 时出现“内部服务器错误”
【发布时间】: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


    【解决方案1】:

    解决了这个问题,这是一个愚蠢的错误,问题是我在密码中有一个 @symbol 并且我没有对其进行 url 编码。当我转义符号并重新启动服务器时,它开始工作。

    【讨论】:

    • 嗨,伙计,我也遇到了同样的问题。你说的是哪个密码?
    • 您好,您在Mongolab网站内为数据库设置的密码。从同一个中删除@
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-10-03
    • 2019-12-01
    • 2017-12-06
    • 1970-01-01
    • 2018-01-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多