2016-02-16 20 views
1

我正在撤離下沉的Parse ship。將Parse移植到Heroku/AWS時出現「內部服務器錯誤」

  • 遷移數據的MongoDB
  • 同時使用api.parse.com用MongoDB的
  • 測試連接
  • 在Heroku \ AWS
  • 託管解析服務器都
  • 通過將自己的網址,看到「我測試的服務器夢想成爲網站」
  • 更新了的appid,主鍵,然後在蒙戈的URI AWS和Heroku的服務器

在我的應用程序委託我我們E,

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." 

任何幫助表示讚賞,謝謝

回答

0

解決了這個問題,它是一個愚蠢的錯誤,問題是我有一個密碼@symbol,我沒有網址編碼它。當我逃離符號並重新啓動服務器時,它開始工作。

+0

嗨,隊友,我一直面臨同樣的問題。你在說什麼密碼? – Neophile

+0

嗨,您爲Mongolab網站內的數據庫設置的密碼。從相同的位置刪除@ –

相關問題