Mongodb 无法从mongolab[解析Heroku上的服务器]下载图像

Mongodb 无法从mongolab[解析Heroku上的服务器]下载图像,mongodb,parse-platform,mlab,parse-server,Mongodb,Parse Platform,Mlab,Parse Server,我已经在带有Mongodb插件的Heroku上使用解析源代码实现了一个简单的instagram克隆应用程序。我在DB上发布了一些图像和消息,当我试图检索图像及其相应的消息时,我只得到消息,而不是图像。以下是代码和错误: 代码: 错误: ParseStarterProject Swift[65068:8486166][错误]:不支持的URL(代码:100,版本:1.12.0) 错误:不支持的URL 请注意,应用程序检索PFFiles,但在调用getDataInBackgroundWithBloc

我已经在带有Mongodb插件的Heroku上使用解析源代码实现了一个简单的instagram克隆应用程序。我在DB上发布了一些图像和消息,当我试图检索图像及其相应的消息时,我只得到消息,而不是图像。以下是代码和错误:

代码:

错误: ParseStarterProject Swift[65068:8486166][错误]:不支持的URL(代码:100,版本:1.12.0) 错误:不支持的URL


请注意,应用程序检索PFFiles,但在调用getDataInBackgroundWithBlock时会抛出“不支持的URL”错误。此外,客户端代码似乎还可以,因为我测试了连接到原始解析服务器的客户端应用程序(使用了我的讲师appId和masterkey),它工作得很好。

欢迎使用StackOverflow。本网站的目的是为编程相关的问题。这意味着,如果他们的代码有问题,我们需要看看你做了什么,以便指出问题和解决方案。他们在这里没有代码,所以你需要在出现问题的地方发布你的代码。谢谢你的指导。我添加了代码。您是使用文件适配器存储文件,还是将其存储在mondoDB文件网格中?如果使用文件适配器,index.js中适配器的URL可能无效?
  query.findObjectsInBackgroundWithBlock({ (posts, err) -> Void in

               if let posts = posts {

                   for post in posts {

                        self.messages.append(post["message"]! as! String)
                        self.images.append(post["imageFile"]! as! PFFile)
                            self.usernames.append(self.users[post["userId"] as! String]!)
                            self.tableView.reloadData()

                        }
                    }
                })
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    let cell = tableView.dequeueReusableCellWithIdentifier("postCell", forIndexPath: indexPath) as! instaPostCell

    cell.selectionStyle = UITableViewCellSelectionStyle.None
    images[indexPath.row].getDataInBackgroundWithBlock { (d, error ) -> Void in
        if error == nil {

            if let downloadedImage = UIImage(data: d!) {
                cell.postedImage.image = downloadedImage
            }

       }else {
                if let error = error {
                print("error: \(error.userInfo["error"]!)")
            }
       }


    }