Skip to content

Unable to download file from the parse-server #2743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
swapnilgt opened this issue Sep 19, 2016 · 13 comments
Closed
1 task

Unable to download file from the parse-server #2743

swapnilgt opened this issue Sep 19, 2016 · 13 comments

Comments

@swapnilgt
Copy link

I have not marked the above one as complete because I host my parse-server instance on a machine which is accessible using a global domain and not on any infrastructure provider like Heroku or AWS.

Issue Description

I have a parse-server hosted on one of the machines with a locally installed mongodb instance. I have a class which contains File in one of the columns. The problem is that I am unable to download the file using the Parse SDK for Android (I haven't tried with other SDKs yet!). The machine has an apache server installed which listens to the requests using a global domain name and then redirects the requests to the local domain using localhost:<port>. I am able to fetch the data of the ParseObject(s) successfully but when I try to download the file using ParseFile.getDataInBackground(...), after a while I get the following error:

com.parse.ParseRequest$ParseRequestException: i/o failure
                                                                                         at com.parse.ParseRequest.newTemporaryException(ParseRequest.java:290)
                                                                                         at com.parse.ParseRequest$2.then(ParseRequest.java:145)
                                                                                         at com.parse.ParseRequest$2.then(ParseRequest.java:139)
                                                                                         at bolts.Task$15.run(Task.java:917)
                                                                                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                                         at java.lang.Thread.run(Thread.java:818)
                                                                                      Caused by: java.net.ConnectException: failed to connect to localhost/127.0.0.1 (port 9910) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused)
                                                                                         at libcore.io.IoBridge.isConnected(IoBridge.java:238)
                                                                                         at libcore.io.IoBridge.connectErrno(IoBridge.java:171)
                                                                                         at libcore.io.IoBridge.connect(IoBridge.java:122)
                                                                                         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
                                                                                         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:456)
                                                                                         at java.net.Socket.connect(Socket.java:882)
                                                                                         at com.android.okhttp.internal.Platform.connectSocket(Platform.java:174)
                                                                                         at com.android.okhttp.Connection.connect(Connection.java:152)
                                                                                         at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:276)
                                                                                         at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
                                                                                         at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
                                                                                         at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:332)
                                                                                         at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:500)

I was able to download the files a few releases back for the parse-server, though I don't actually remember the release number.

Environment Setup

  • Server
    • parse-server version : 2.2.21
    • Operating System: 14.04.4 LTS (GNU/Linux 3.13.0-65-generic x86_64)
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): Remote Server hosted inside a university. Hosted the mongodb instance on the same machine.
  • Database
    • MongoDB version: v3.0.9
    • Storage engine: mmapv1
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): Runs on the same machine as the parse-server.

Logs/Trace

NA

@flovilmart
Copy link
Contributor

can you provide the logs from parse-server when running with VERBOSE=1?

@swapnilgt
Copy link
Author

Here are the logs for the request of the class objects which contains my file:

verbose: REQUEST for [GET] /parse/classes/Shruti: {} method=GET, url=/parse/classes/Shruti, host=localhost:9910, x-parse-os-version=5.1.1, x-parse-app-build-version=1, x-parse-client-key=, x-parse-client-version=a1.13.1, x-parse-app-display-version=0.1.0, x-parse-installation-id=5bd89233-8c62-4a7b-bfd0-6e1abb2d775f, user-agent=Parse Android SDK 1.13.1 (com.musicmuni.riyaz2.alpha/1) API Level 22, x-parse-session-token=r:6504c67633cce671ec42565223b0139f, x-parse-application-id=<appId>, content-type=application/json, accept-encoding=gzip, x-forwarded-for=84.89.136.42, x-forwarded-host=test-camut-mtg.upf.edu, x-forwarded-server=test-camut-mtg.upf.edu, connection=Keep-Alive, content-length=17, 
verbose: RESPONSE from [GET] /parse/classes/Shruti: {
  "response": {
    "results": [
      {
        "objectId": "wfonnLjcsW",
        "name": "Bflat_NRC",
        "createdAt": "2016-09-19T10:53:40.243Z",
        "updatedAt": "2016-09-19T15:14:21.434Z",
        "freqHz": 233.08,
        "label": "B-flat (Female)",
        "audioFile": {
          "__type": "File",
          "name": "9d3107ae-9341-4115-850f-4397ea236162_bflat_nrc_pa.mp3",
          "url": "http://localhost:9910/parse/files/<appId>/9d3107ae-9341-4115-850f-4397ea236162_bflat_nrc_pa.mp3"
        }
      },
      {
        "objectId": "wwq4j1z6f7",
        "name": "D_Vig",
        "createdAt": "2016-09-19T10:54:43.657Z",
        "updatedAt": "2016-09-19T15:14:10.730Z",
        "freqHz": 147.3,
        "label": "D (Male)",
        "audioFile": {
          "__type": "File",
          "name": "70e85687-93b8-4c22-8125-4e1b6f1eecfd_d_vig_pa.mp3",
          "url": "http://localhost:9910/parse/files/<appId>/70e85687-93b8-4c22-8125-4e1b6f1eecfd_d_vig_pa.mp3"
        }
      },
      {
        "objectId": "OrlnnRRT19",
        "name": "D_KK",
        "createdAt": "2016-09-19T10:58:47.515Z",
        "updatedAt": "2016-09-19T15:13:59.133Z",
        "freqHz": 146.83,
        "label": "D (Male)",
        "audioFile": {
          "__type": "File",
          "name": "b704a141-af03-425d-be93-fe034f21dcc1_d_kk_pa.mp3",
          "url": "http://localhost:9910/parse/files/<appId>/b704a141-af03-425d-be93-fe034f21dcc1_d_kk_pa.mp3"
        }
      },
      {
        "objectId": "bggqurZYQv",
        "name": "G_VR",
        "createdAt": "2016-09-19T10:52:52.698Z",
        "updatedAt": "2016-09-19T15:14:45.521Z",
        "freqHz": 196,
        "label": "G-flat",
        "audioFile": {
          "__type": "File",
          "name": "bed86ced-feb7-4fd2-820f-6fadf625c5ab_g_vid_pa.mp3",
          "url": "http://localhost:9910/parse/files/<appId>/bed86ced-feb7-4fd2-820f-6fadf625c5ab_g_vid_pa.mp3"
        }
      }
    ]
  }
} results=[objectId=wfonnLjcsW, name=Bflat_NRC, createdAt=2016-09-19T10:53:40.243Z, updatedAt=2016-09-19T15:14:21.434Z, freqHz=233.08, label=B-flat (Female), __type=File, name=9d3107ae-9341-4115-850f-4397ea236162_bflat_nrc_pa.mp3, url=http://localhost:9910/parse/files/<appId>/9d3107ae-9341-4115-850f-4397ea236162_bflat_nrc_pa.mp3, objectId=wwq4j1z6f7, name=D_Vig, createdAt=2016-09-19T10:54:43.657Z, updatedAt=2016-09-19T15:14:10.730Z, freqHz=147.3, label=D (Male), __type=File, name=70e85687-93b8-4c22-8125-4e1b6f1eecfd_d_vig_pa.mp3, url=http://localhost:9910/parse/files/<appId>/70e85687-93b8-4c22-8125-4e1b6f1eecfd_d_vig_pa.mp3, objectId=OrlnnRRT19, name=D_KK, createdAt=2016-09-19T10:58:47.515Z, updatedAt=2016-09-19T15:13:59.133Z, freqHz=146.83, label=D (Male), __type=File, name=b704a141-af03-425d-be93-fe034f21dcc1_d_kk_pa.mp3, url=http://localhost:9910/parse/files/<appId>/b704a141-af03-425d-be93-fe034f21dcc1_d_kk_pa.mp3, objectId=bggqurZYQv, name=G_VR, createdAt=2016-09-19T10:52:52.698Z, updatedAt=2016-09-19T15:14:45.521Z, freqHz=196, label=G-flat, __type=File, name=bed86ced-feb7-4fd2-820f-6fadf625c5ab_g_vid_pa.mp3, url=http://localhost:9910/parse/files/<appId>/bed86ced-feb7-4fd2-820f-6fadf625c5ab_g_vid_pa.mp3]

The problem here I see is that files have url with domain as localhost. That is, probably, the reason for the behaviour. But, the question is that why is it putting the domain as localhost and not the global domain name. For reference, here is my index.js

var express = require('express');
var ParseServer = require('parse-server').ParseServer;
var path = require('path');

var databaseUri = process.env.DATABASE_URI || process.env.MONGODB_URI;

if (!databaseUri) {
  console.log('DATABASE_URI not specified, falling back to localhost.');
}

var api = new ParseServer({
  databaseURI: databaseUri || 'mongodb://localhost:27017/test',
  cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
  appId: process.env.APP_ID || <appId>,
  masterKey: process.env.MASTER_KEY || <masterKey>, //Add your master key here. Keep it secret!
  serverURL: process.env.SERVER_URL || 'http://localhost:9910/parse',  // Don't forget to change to https if needed
  liveQuery: {
    classNames: ["Posts", "Comments"] // List of classes to support for query subscriptions
  }
});
// Client-keys like the javascript key or the .NET key are not necessary with parse-server
// If you wish you require them, you can set them as options in the initialization above:
// javascriptKey, restAPIKey, dotNetKey, clientKey

var app = express();

// Serve static assets from the /public folder
app.use('/public', express.static(path.join(__dirname, '/public')));

// Serve the Parse API on the /parse URL prefix
var mountPath = process.env.PARSE_MOUNT || '/parse';
app.use(mountPath, api);

// Parse Server plays nicely with the rest of your web routes
app.get('/', function(req, res) {
  res.status(200).send('I dream of being a website.  Please star the parse-server repo on GitHub!');
});

// There will be a test page available on the /test path of your server url
// Remove this before launching your app
app.get('/test', function(req, res) {
  res.sendFile(path.join(__dirname, '/public/test.html'));
});

var port = process.env.PORT || 9910;
var httpServer = require('http').createServer(app);
httpServer.listen(port, function() {
    console.log('parse-server-example running on port ' + port + '.');
});

// This will enable the Live Query real-time server
ParseServer.createLiveQueryServer(httpServer);

@flovilmart
Copy link
Contributor

You should set the publicServerURL option when initializing Parse Sever

@swapnilgt
Copy link
Author

Thanks. That worked!

luizmb pushed a commit to ArcanosRadio/ArcanosRadio-iOS that referenced this issue Nov 1, 2016
Exception was created because of PFFile having "http://" protocol instead of https.

But thanks to this reply [1] got clear that the problem was the lack of "publicServerURL" property on parse-server.

[1] parse-community/parse-server#2743
@plaudev
Copy link

plaudev commented Nov 2, 2016

@flovilmart can you please specify what is the environment variable name corresponding to publicServerURL? I have some projects which I config myself and this solution seems to work. But I also have some which I deployed by clicking the purple "deploy to heroku" button. I would like to test this solution there before I create the files to config those servers myself. Thanks

@plaudev
Copy link

plaudev commented Nov 2, 2016

@flovilmart thanks for quick response. I'm afraid I just added that env var for 2 of my apps deployed using the "deploy to heroku" button and restarted those dynos but both still encountering the ATS problem

@plaudev
Copy link

plaudev commented Nov 2, 2016

@flovilmart I just manually re-configured both of those deployments previously done with the "deploy to heroku" button. Verified both set ups working via cloud code.

One of them now works with ATS allow arbitrary loads set to false. The other one however is still unable to download data. The errmsg now does not mention ATS any more but instead:

2016-11-02 13:27:12.506 Instagram[12278:3370417] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2016-11-02 13:27:12.508 Instagram[12278:3370468] [Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
2016-11-02 13:27:12.508 Instagram[12278:3370468] [Error]: Network connection failed. Making attempt 1 after sleeping for 1.458930 seconds.

Any further suggestions? Thanks

@flovilmart
Copy link
Contributor

@plaudev please provide the logs from parse-server. ATS issues have nothing to do here.

@plaudev
Copy link

plaudev commented Nov 3, 2016

@flovilmart thx for response. Here are the logs on heroku:

2016-11-03T03:27:28.425632+00:00 heroku[router]: at=info method=POST path="/parse/classes/_User" host=instagrampl.herokuapp.com request_id=36c46777-95be-4cc8-a0d1-c4eb1fdf57d9 fwd="99.250.153.14" dyno=web.1 connect=1ms service=63ms status=200 bytes=2059
2016-11-03T03:27:28.541255+00:00 heroku[router]: at=info method=POST path="/parse/classes/Followers" host=instagrampl.herokuapp.com request_id=3209633c-6207-4cbe-a2ef-141e1b6f1183 fwd="99.250.153.14" dyno=web.1 connect=1ms service=16ms status=200 bytes=972
2016-11-03T03:27:28.400134+00:00 app[web.1]: �[36mverbose�[39m: REQUEST for [GET] /parse/classes/_User: {} method=GET, url=/parse/classes/_User, host=instagrampl.herokuapp.com, connection=close, x-parse-client-version=i1.14.2, accept=*/*, x-parse-session-token=r:8d278149fad76ed773290e7c4cf452c2, x-parse-application-id=dksjh23ksajdf23jksadfkj3, x-parse-client-key=, x-parse-installation-id=67b7593d-cf78-4d1d-bcf0-dd25ad2944d0, x-parse-os-version=9.3 (15G1004), accept-language=en-us, accept-encoding=gzip, deflate, content-type=application/json; charset=utf-8, user-agent=Instagram/1.12.0 CFNetwork/758.3.15 Darwin/15.6.0, x-parse-app-build-version=1.12.0, x-parse-app-display-version=1.12.0, x-request-id=36c46777-95be-4cc8-a0d1-c4eb1fdf57d9, x-forwarded-for=99.250.153.14, x-forwarded-proto=https, x-forwarded-port=443, via=1.1 vegur, connect-time=1, x-request-start=1478143648359, total-route-time=0, content-length=17, 
2016-11-03T03:27:28.425236+00:00 app[web.1]: �[36mverbose�[39m: RESPONSE from [GET] /parse/classes/_User: {
2016-11-03T03:27:28.425239+00:00 app[web.1]:   "response": {
2016-11-03T03:27:28.425240+00:00 app[web.1]:     "results": [
2016-11-03T03:27:28.425241+00:00 app[web.1]:       {
2016-11-03T03:27:28.425242+00:00 app[web.1]:         "objectId": "pdzQVKkCRP",
2016-11-03T03:27:28.425243+00:00 app[web.1]:         "email": "doggie@buddies.com",
2016-11-03T03:27:28.425244+00:00 app[web.1]:         "username": "doggie",
2016-11-03T03:27:28.425244+00:00 app[web.1]:         "updatedAt": "2016-08-18T01:46:31.405Z",
2016-11-03T03:27:28.425244+00:00 app[web.1]:         "createdAt": "2016-08-18T01:46:31.405Z",
2016-11-03T03:27:28.425245+00:00 app[web.1]:         "ACL": {
2016-11-03T03:27:28.425245+00:00 app[web.1]:           "pdzQVKkCRP": {
2016-11-03T03:27:28.425246+00:00 app[web.1]:             "read": true,
2016-11-03T03:27:28.425246+00:00 app[web.1]:             "write": true
2016-11-03T03:27:28.425247+00:00 app[web.1]:           },
2016-11-03T03:27:28.425248+00:00 app[web.1]:           "*": {
2016-11-03T03:27:28.425248+00:00 app[web.1]:             "read": true
2016-11-03T03:27:28.425249+00:00 app[web.1]:           }
2016-11-03T03:27:28.425250+00:00 app[web.1]:         }
2016-11-03T03:27:28.425250+00:00 app[web.1]:       },
2016-11-03T03:27:28.425251+00:00 app[web.1]:       {
2016-11-03T03:27:28.425251+00:00 app[web.1]:         "objectId": "el2bsvvOhn",
2016-11-03T03:27:28.425252+00:00 app[web.1]:         "email": "birdie@buddies.com",
2016-11-03T03:27:28.425252+00:00 app[web.1]:         "username": "birdie",
2016-11-03T03:27:28.425253+00:00 app[web.1]:         "updatedAt": "2016-08-18T01:49:00.606Z",
2016-11-03T03:27:28.425254+00:00 app[web.1]:         "createdAt": "2016-08-18T01:49:00.606Z",
2016-11-03T03:27:28.425254+00:00 app[web.1]:         "ACL": {
2016-11-03T03:27:28.425255+00:00 app[web.1]:           "el2bsvvOhn": {
2016-11-03T03:27:28.425255+00:00 app[web.1]:             "read": true,
2016-11-03T03:27:28.425256+00:00 app[web.1]:             "write": true
2016-11-03T03:27:28.425257+00:00 app[web.1]:           },
2016-11-03T03:27:28.425257+00:00 app[web.1]:           "*": {
2016-11-03T03:27:28.425258+00:00 app[web.1]:             "read": true
2016-11-03T03:27:28.425258+00:00 app[web.1]:           }
2016-11-03T03:27:28.425259+00:00 app[web.1]:         }
2016-11-03T03:27:28.425260+00:00 app[web.1]:       },
2016-11-03T03:27:28.425260+00:00 app[web.1]:       {
2016-11-03T03:27:28.425261+00:00 app[web.1]:         "objectId": "L7m5bf1zXm",
2016-11-03T03:27:28.425261+00:00 app[web.1]:         "email": "bunnie@buddies.com",
2016-11-03T03:27:28.425262+00:00 app[web.1]:         "username": "bunnie",
2016-11-03T03:27:28.425262+00:00 app[web.1]:         "updatedAt": "2016-08-18T02:13:31.189Z",
2016-11-03T03:27:28.425263+00:00 app[web.1]:         "createdAt": "2016-08-18T02:13:31.189Z",
2016-11-03T03:27:28.425264+00:00 app[web.1]:         "ACL": {
2016-11-03T03:27:28.425264+00:00 app[web.1]:           "L7m5bf1zXm": {
2016-11-03T03:27:28.425265+00:00 app[web.1]:             "read": true,
2016-11-03T03:27:28.425265+00:00 app[web.1]:             "write": true
2016-11-03T03:27:28.425266+00:00 app[web.1]:           },
2016-11-03T03:27:28.425267+00:00 app[web.1]:           "*": {
2016-11-03T03:27:28.425267+00:00 app[web.1]:             "read": true
2016-11-03T03:27:28.425268+00:00 app[web.1]:           }
2016-11-03T03:27:28.425268+00:00 app[web.1]:         }
2016-11-03T03:27:28.425269+00:00 app[web.1]:       },
2016-11-03T03:27:28.425270+00:00 app[web.1]:       {
2016-11-03T03:27:28.425270+00:00 app[web.1]:         "objectId": "REFpNvOn7K",
2016-11-03T03:27:28.425271+00:00 app[web.1]:         "email": "moosie@buddies.com",
2016-11-03T03:27:28.425271+00:00 app[web.1]:         "username": "moosie",
2016-11-03T03:27:28.425272+00:00 app[web.1]:         "updatedAt": "2016-08-18T02:14:18.496Z",
2016-11-03T03:27:28.425273+00:00 app[web.1]:         "createdAt": "2016-08-18T02:14:18.496Z",
2016-11-03T03:27:28.425273+00:00 app[web.1]:         "ACL": {
2016-11-03T03:27:28.425274+00:00 app[web.1]:           "REFpNvOn7K": {
2016-11-03T03:27:28.425274+00:00 app[web.1]:             "read": true,
2016-11-03T03:27:28.425275+00:00 app[web.1]:             "write": true
2016-11-03T03:27:28.425276+00:00 app[web.1]:           },
2016-11-03T03:27:28.425276+00:00 app[web.1]:           "*": {
2016-11-03T03:27:28.425277+00:00 app[web.1]:             "read": true
2016-11-03T03:27:28.425278+00:00 app[web.1]:           }
2016-11-03T03:27:28.425278+00:00 app[web.1]:         }
2016-11-03T03:27:28.425279+00:00 app[web.1]:       },
2016-11-03T03:27:28.425280+00:00 app[web.1]:       {
2016-11-03T03:27:28.425280+00:00 app[web.1]:         "objectId": "KJA5Qsnolh",
2016-11-03T03:27:28.425281+00:00 app[web.1]:         "email": "monkie@buddies.com",
2016-11-03T03:27:28.425281+00:00 app[web.1]:         "username": "monkie",
2016-11-03T03:27:28.425282+00:00 app[web.1]:         "updatedAt": "2016-08-18T02:14:52.568Z",
2016-11-03T03:27:28.425282+00:00 app[web.1]:         "createdAt": "2016-08-18T02:14:52.568Z",
2016-11-03T03:27:28.425283+00:00 app[web.1]:         "ACL": {
2016-11-03T03:27:28.425283+00:00 app[web.1]:           "KJA5Qsnolh": {
2016-11-03T03:27:28.425284+00:00 app[web.1]:             "read": true,
2016-11-03T03:27:28.425284+00:00 app[web.1]:             "write": true
2016-11-03T03:27:28.425284+00:00 app[web.1]:           },
2016-11-03T03:27:28.425285+00:00 app[web.1]:           "*": {
2016-11-03T03:27:28.425285+00:00 app[web.1]:             "read": true
2016-11-03T03:27:28.425285+00:00 app[web.1]:           }
2016-11-03T03:27:28.425286+00:00 app[web.1]:         }
2016-11-03T03:27:28.425286+00:00 app[web.1]:       },
2016-11-03T03:27:28.425286+00:00 app[web.1]:       {
2016-11-03T03:27:28.425287+00:00 app[web.1]:         "objectId": "3QRXHVMoRQ",
2016-11-03T03:27:28.425291+00:00 app[web.1]:         "email": "piggie@buddies.com",
2016-11-03T03:27:28.425292+00:00 app[web.1]:         "username": "piggie",
2016-11-03T03:27:28.425292+00:00 app[web.1]:         "updatedAt": "2016-08-18T02:15:34.064Z",
2016-11-03T03:27:28.425293+00:00 app[web.1]:         "createdAt": "2016-08-18T02:15:34.064Z",
2016-11-03T03:27:28.425293+00:00 app[web.1]:         "ACL": {
2016-11-03T03:27:28.425293+00:00 app[web.1]:           "3QRXHVMoRQ": {
2016-11-03T03:27:28.425294+00:00 app[web.1]:             "read": true,
2016-11-03T03:27:28.425294+00:00 app[web.1]:             "write": true
2016-11-03T03:27:28.425294+00:00 app[web.1]:           },
2016-11-03T03:27:28.425295+00:00 app[web.1]:           "*": {
2016-11-03T03:27:28.425295+00:00 app[web.1]:             "read": true
2016-11-03T03:27:28.425295+00:00 app[web.1]:           }
2016-11-03T03:27:28.425296+00:00 app[web.1]:         }
2016-11-03T03:27:28.425296+00:00 app[web.1]:       },
2016-11-03T03:27:28.425296+00:00 app[web.1]:       {
2016-11-03T03:27:28.425297+00:00 app[web.1]:         "objectId": "Xug3T01QWA",
2016-11-03T03:27:28.425297+00:00 app[web.1]:         "username": "hi",
2016-11-03T03:27:28.425297+00:00 app[web.1]:         "email": "nathan@me.com",
2016-11-03T03:27:28.425298+00:00 app[web.1]:         "updatedAt": "2016-10-09T23:31:17.740Z",
2016-11-03T03:27:28.425298+00:00 app[web.1]:         "createdAt": "2016-10-09T23:31:17.740Z",
2016-11-03T03:27:28.425299+00:00 app[web.1]:         "ACL": {
2016-11-03T03:27:28.425299+00:00 app[web.1]:           "Xug3T01QWA": {
2016-11-03T03:27:28.425299+00:00 app[web.1]:             "read": true,
2016-11-03T03:27:28.425300+00:00 app[web.1]:             "write": true
2016-11-03T03:27:28.425300+00:00 app[web.1]:           },
2016-11-03T03:27:28.425300+00:00 app[web.1]:           "*": {
2016-11-03T03:27:28.425301+00:00 app[web.1]:             "read": true
2016-11-03T03:27:28.425301+00:00 app[web.1]:           }
2016-11-03T03:27:28.425301+00:00 app[web.1]:         }
2016-11-03T03:27:28.425302+00:00 app[web.1]:       }
2016-11-03T03:27:28.425302+00:00 app[web.1]:     ]
2016-11-03T03:27:28.425302+00:00 app[web.1]:   }
2016-11-03T03:27:28.425304+00:00 app[web.1]: } results=[objectId=pdzQVKkCRP, email=doggie@buddies.com, username=doggie, updatedAt=2016-08-18T01:46:31.405Z, createdAt=2016-08-18T01:46:31.405Z, read=true, write=true, read=true, objectId=el2bsvvOhn, email=birdie@buddies.com, username=birdie, updatedAt=2016-08-18T01:49:00.606Z, createdAt=2016-08-18T01:49:00.606Z, read=true, write=true, read=true, objectId=L7m5bf1zXm, email=bunnie@buddies.com, username=bunnie, updatedAt=2016-08-18T02:13:31.189Z, createdAt=2016-08-18T02:13:31.189Z, read=true, write=true, read=true, objectId=REFpNvOn7K, email=moosie@buddies.com, username=moosie, updatedAt=2016-08-18T02:14:18.496Z, createdAt=2016-08-18T02:14:18.496Z, read=true, write=true, read=true, objectId=KJA5Qsnolh, email=monkie@buddies.com, username=monkie, updatedAt=2016-08-18T02:14:52.568Z, createdAt=2016-08-18T02:14:52.568Z, read=true, write=true, read=true, objectId=3QRXHVMoRQ, email=piggie@buddies.com, username=piggie, updatedAt=2016-08-18T02:15:34.064Z, createdAt=2016-08-18T02:15:34.064Z, read=true, write=true, read=true, objectId=Xug3T01QWA, username=hi, email=nathan@me.com, updatedAt=2016-10-09T23:31:17.740Z, createdAt=2016-10-09T23:31:17.740Z, read=true, write=true, read=true]
2016-11-03T03:27:28.494322+00:00 app[web.1]: �[36mverbose�[39m: REQUEST for [GET] /parse/classes/Followers: {
2016-11-03T03:27:28.494325+00:00 app[web.1]:   "where": {
2016-11-03T03:27:28.494326+00:00 app[web.1]:     "follower": "L7m5bf1zXm"
2016-11-03T03:27:28.494327+00:00 app[web.1]:   }
2016-11-03T03:27:28.494329+00:00 app[web.1]: } method=GET, url=/parse/classes/Followers, host=instagrampl.herokuapp.com, connection=close, x-parse-client-version=i1.14.2, accept=*/*, x-parse-session-token=r:8d278149fad76ed773290e7c4cf452c2, x-parse-application-id=dksjh23ksajdf23jksadfkj3, x-parse-client-key=, x-parse-installation-id=67b7593d-cf78-4d1d-bcf0-dd25ad2944d0, x-parse-os-version=9.3 (15G1004), accept-language=en-us, accept-encoding=gzip, deflate, content-type=application/json; charset=utf-8, user-agent=Instagram/1.12.0 CFNetwork/758.3.15 Darwin/15.6.0, x-parse-app-build-version=1.12.0, x-parse-app-display-version=1.12.0, x-request-id=3209633c-6207-4cbe-a2ef-141e1b6f1183, x-forwarded-for=99.250.153.14, x-forwarded-proto=https, x-forwarded-port=443, via=1.1 vegur, connect-time=1, x-request-start=1478143648522, total-route-time=0, content-length=51, follower=L7m5bf1zXm
2016-11-03T03:27:28.505537+00:00 app[web.1]: �[36mverbose�[39m: RESPONSE from [GET] /parse/classes/Followers: {
2016-11-03T03:27:28.505540+00:00 app[web.1]:   "response": {
2016-11-03T03:27:28.505541+00:00 app[web.1]:     "results": [
2016-11-03T03:27:28.505542+00:00 app[web.1]:       {
2016-11-03T03:27:28.505543+00:00 app[web.1]:         "objectId": "zMQIVUpnDE",
2016-11-03T03:27:28.505549+00:00 app[web.1]:         "following": "3QRXHVMoRQ",
2016-11-03T03:27:28.505550+00:00 app[web.1]:         "follower": "L7m5bf1zXm",
2016-11-03T03:27:28.505551+00:00 app[web.1]:         "updatedAt": "2016-08-18T22:51:41.705Z",
2016-11-03T03:27:28.505551+00:00 app[web.1]:         "createdAt": "2016-08-18T22:51:41.705Z",
2016-11-03T03:27:28.505552+00:00 app[web.1]:         "ACL": {
2016-11-03T03:27:28.505553+00:00 app[web.1]:           "*": {
2016-11-03T03:27:28.505553+00:00 app[web.1]:             "read": true
2016-11-03T03:27:28.505554+00:00 app[web.1]:           },
2016-11-03T03:27:28.505554+00:00 app[web.1]:           "L7m5bf1zXm": {
2016-11-03T03:27:28.505555+00:00 app[web.1]:             "read": true,
2016-11-03T03:27:28.505556+00:00 app[web.1]:             "write": true
2016-11-03T03:27:28.505556+00:00 app[web.1]:           }
2016-11-03T03:27:28.505557+00:00 app[web.1]:         }
2016-11-03T03:27:28.505557+00:00 app[web.1]:       },
2016-11-03T03:27:28.505558+00:00 app[web.1]:       {
2016-11-03T03:27:28.505558+00:00 app[web.1]:         "objectId": "jkuYxYAX5L",
2016-11-03T03:27:28.505559+00:00 app[web.1]:         "following": "REFpNvOn7K",
2016-11-03T03:27:28.505559+00:00 app[web.1]:         "follower": "L7m5bf1zXm",
2016-11-03T03:27:28.505559+00:00 app[web.1]:         "updatedAt": "2016-08-18T22:51:42.015Z",
2016-11-03T03:27:28.505560+00:00 app[web.1]:         "createdAt": "2016-08-18T22:51:42.015Z",
2016-11-03T03:27:28.505560+00:00 app[web.1]:         "ACL": {
2016-11-03T03:27:28.505560+00:00 app[web.1]:           "*": {
2016-11-03T03:27:28.505561+00:00 app[web.1]:             "read": true
2016-11-03T03:27:28.505561+00:00 app[web.1]:           },
2016-11-03T03:27:28.505561+00:00 app[web.1]:           "L7m5bf1zXm": {
2016-11-03T03:27:28.505562+00:00 app[web.1]:             "read": true,
2016-11-03T03:27:28.505562+00:00 app[web.1]:             "write": true
2016-11-03T03:27:28.505563+00:00 app[web.1]:           }
2016-11-03T03:27:28.505563+00:00 app[web.1]:         }
2016-11-03T03:27:28.505563+00:00 app[web.1]:       }
2016-11-03T03:27:28.505564+00:00 app[web.1]:     ]
2016-11-03T03:27:28.505564+00:00 app[web.1]:   }
2016-11-03T03:27:28.505566+00:00 app[web.1]: } results=[objectId=zMQIVUpnDE, following=3QRXHVMoRQ, follower=L7m5bf1zXm, updatedAt=2016-08-18T22:51:41.705Z, createdAt=2016-08-18T22:51:41.705Z, read=true, read=true, write=true, objectId=jkuYxYAX5L, following=REFpNvOn7K, follower=L7m5bf1zXm, updatedAt=2016-08-18T22:51:42.015Z, createdAt=2016-08-18T22:51:42.015Z, read=true, read=true, write=true]
2016-11-03T03:27:28.609177+00:00 app[web.1]: �[36mverbose�[39m: REQUEST for [GET] /parse/classes/Posts: {
2016-11-03T03:27:28.609180+00:00 app[web.1]:   "where": {
2016-11-03T03:27:28.609181+00:00 app[web.1]:     "userId": "3QRXHVMoRQ"
2016-11-03T03:27:28.609182+00:00 app[web.1]:   }
2016-11-03T03:27:28.609183+00:00 app[web.1]: } method=GET, url=/parse/classes/Posts, host=instagrampl.herokuapp.com, connection=close, x-parse-client-version=i1.14.2, accept=*/*, x-parse-session-token=r:8d278149fad76ed773290e7c4cf452c2, x-parse-application-id=dksjh23ksajdf23jksadfkj3, x-parse-client-key=, x-parse-installation-id=67b7593d-cf78-4d1d-bcf0-dd25ad2944d0, x-parse-os-version=9.3 (15G1004), accept-language=en-us, accept-encoding=gzip, deflate, content-type=application/json; charset=utf-8, user-agent=Instagram/1.12.0 CFNetwork/758.3.15 Darwin/15.6.0, x-parse-app-build-version=1.12.0, x-parse-app-display-version=1.12.0, x-request-id=0d47de4c-1abe-4781-a216-202730b4f41f, x-forwarded-for=99.250.153.14, x-forwarded-proto=https, x-forwarded-port=443, via=1.1 vegur, connect-time=1, x-request-start=1478143648599, total-route-time=0, content-length=49, userId=3QRXHVMoRQ
2016-11-03T03:27:28.613539+00:00 app[web.1]: �[36mverbose�[39m: REQUEST for [GET] /parse/classes/Posts: {
2016-11-03T03:27:28.613541+00:00 app[web.1]:   "where": {
2016-11-03T03:27:28.613541+00:00 app[web.1]:     "userId": "REFpNvOn7K"
2016-11-03T03:27:28.613542+00:00 app[web.1]:   }
2016-11-03T03:27:28.613546+00:00 app[web.1]: } method=GET, url=/parse/classes/Posts, host=instagrampl.herokuapp.com, connection=close, x-parse-client-version=i1.14.2, accept=*/*, x-parse-session-token=r:8d278149fad76ed773290e7c4cf452c2, x-parse-application-id=dksjh23ksajdf23jksadfkj3, x-parse-client-key=, x-parse-installation-id=67b7593d-cf78-4d1d-bcf0-dd25ad2944d0, x-parse-os-version=9.3 (15G1004), accept-language=en-us, accept-encoding=gzip, deflate, content-type=application/json; charset=utf-8, user-agent=Instagram/1.12.0 CFNetwork/758.3.15 Darwin/15.6.0, x-parse-app-build-version=1.12.0, x-parse-app-display-version=1.12.0, x-request-id=36a4510d-e92f-44c7-91d8-2ba83944925d, x-forwarded-for=99.250.153.14, x-forwarded-proto=https, x-forwarded-port=443, via=1.1 vegur, connect-time=1, x-request-start=1478143648639, total-route-time=0, content-length=49, userId=REFpNvOn7K
2016-11-03T03:27:28.622830+00:00 app[web.1]: �[36mverbose�[39m: RESPONSE from [GET] /parse/classes/Posts: {
2016-11-03T03:27:28.622832+00:00 app[web.1]:   "response": {
2016-11-03T03:27:28.622833+00:00 app[web.1]:     "results": [
2016-11-03T03:27:28.622833+00:00 app[web.1]:       {
2016-11-03T03:27:28.622834+00:00 app[web.1]:         "objectId": "jfYdmcW4kN",
2016-11-03T03:27:28.622834+00:00 app[web.1]:         "imageFile": {
2016-11-03T03:27:28.622835+00:00 app[web.1]:           "__type": "File",
2016-11-03T03:27:28.622836+00:00 app[web.1]:           "name": "f6de23e88328265ae8d57caf81241504_e800aa2e-3164-49be-9c7b-91eccd0d1665.jpg",
2016-11-03T03:27:28.622851+00:00 app[web.1]:           "url": "https://instagrampl.heroku.com/parse/files/dksjh23ksajdf23jksadfkj3/f6de23e88328265ae8d57caf81241504_e800aa2e-3164-49be-9c7b-91eccd0d1665.jpg"
2016-11-03T03:27:28.622852+00:00 app[web.1]:         },
2016-11-03T03:27:28.622852+00:00 app[web.1]:         "caption": "yummy spring rolls",
2016-11-03T03:27:28.622853+00:00 app[web.1]:         "userId": "3QRXHVMoRQ",
2016-11-03T03:27:28.622853+00:00 app[web.1]:         "updatedAt": "2016-08-19T01:37:02.518Z",
2016-11-03T03:27:28.622854+00:00 app[web.1]:         "createdAt": "2016-08-19T01:37:02.518Z",
2016-11-03T03:27:28.622854+00:00 app[web.1]:         "ACL": {
2016-11-03T03:27:28.622854+00:00 app[web.1]:           "*": {
2016-11-03T03:27:28.622855+00:00 app[web.1]:             "read": true
2016-11-03T03:27:28.622855+00:00 app[web.1]:           },
2016-11-03T03:27:28.622855+00:00 app[web.1]:           "3QRXHVMoRQ": {
2016-11-03T03:27:28.622856+00:00 app[web.1]:             "read": true,
2016-11-03T03:27:28.622856+00:00 app[web.1]:             "write": true
2016-11-03T03:27:28.622856+00:00 app[web.1]:           }
2016-11-03T03:27:28.622857+00:00 app[web.1]:         }
2016-11-03T03:27:28.622857+00:00 app[web.1]:       }
2016-11-03T03:27:28.622857+00:00 app[web.1]:     ]
2016-11-03T03:27:28.622858+00:00 app[web.1]:   }
2016-11-03T03:27:28.622864+00:00 app[web.1]: } results=[objectId=jfYdmcW4kN, __type=File, name=f6de23e88328265ae8d57caf81241504_e800aa2e-3164-49be-9c7b-91eccd0d1665.jpg, url=https://instagrampl.heroku.com/parse/files/dksjh23ksajdf23jksadfkj3/f6de23e88328265ae8d57caf81241504_e800aa2e-3164-49be-9c7b-91eccd0d1665.jpg, caption=yummy spring rolls, userId=3QRXHVMoRQ, updatedAt=2016-08-19T01:37:02.518Z, createdAt=2016-08-19T01:37:02.518Z, read=true, read=true, write=true]
2016-11-03T03:27:28.629262+00:00 app[web.1]: �[36mverbose�[39m: RESPONSE from [GET] /parse/classes/Posts: {
2016-11-03T03:27:28.629264+00:00 app[web.1]:   "response": {
2016-11-03T03:27:28.629265+00:00 app[web.1]:     "results": [
2016-11-03T03:27:28.629265+00:00 app[web.1]:       {
2016-11-03T03:27:28.629266+00:00 app[web.1]:         "objectId": "Qg2NEeRARY",
2016-11-03T03:27:28.629266+00:00 app[web.1]:         "imageFile": {
2016-11-03T03:27:28.629267+00:00 app[web.1]:           "__type": "File",
2016-11-03T03:27:28.629267+00:00 app[web.1]:           "name": "fc5a3d01b38c1bb7817dfff70cbd19e5_99d53a1f-feef-40e1-8bb3-7dd55a43c8b7.jpg",
2016-11-03T03:27:28.629268+00:00 app[web.1]:           "url": "https://instagrampl.heroku.com/parse/files/dksjh23ksajdf23jksadfkj3/fc5a3d01b38c1bb7817dfff70cbd19e5_99d53a1f-feef-40e1-8bb3-7dd55a43c8b7.jpg"
2016-11-03T03:27:28.629268+00:00 app[web.1]:         },
2016-11-03T03:27:28.629269+00:00 app[web.1]:         "caption": "did I post this one already?",
2016-11-03T03:27:28.629269+00:00 app[web.1]:         "userId": "REFpNvOn7K",
2016-11-03T03:27:28.629270+00:00 app[web.1]:         "updatedAt": "2016-08-18T20:09:56.460Z",
2016-11-03T03:27:28.629270+00:00 app[web.1]:         "createdAt": "2016-08-18T16:22:32.213Z",
2016-11-03T03:27:28.629270+00:00 app[web.1]:         "ACL": {
2016-11-03T03:27:28.629271+00:00 app[web.1]:           "*": {
2016-11-03T03:27:28.629271+00:00 app[web.1]:             "read": true
2016-11-03T03:27:28.629271+00:00 app[web.1]:           },
2016-11-03T03:27:28.629272+00:00 app[web.1]:           "pdzQVKkCRP": {
2016-11-03T03:27:28.629272+00:00 app[web.1]:             "read": true,
2016-11-03T03:27:28.629272+00:00 app[web.1]:             "write": true
2016-11-03T03:27:28.629286+00:00 app[web.1]:           }
2016-11-03T03:27:28.629286+00:00 app[web.1]:         }
2016-11-03T03:27:28.629287+00:00 app[web.1]:       },
2016-11-03T03:27:28.629287+00:00 app[web.1]:       {
2016-11-03T03:27:28.629288+00:00 app[web.1]:         "objectId": "uIV4fC3lHb",
2016-11-03T03:27:28.629289+00:00 app[web.1]:         "imageFile": {
2016-11-03T03:27:28.629289+00:00 app[web.1]:           "__type": "File",
2016-11-03T03:27:28.629290+00:00 app[web.1]:           "name": "836f7b2487ef7aac037ea763f25e145b_9f983dba-ec35-42b8-8773-b597cf782edd.jpg",
2016-11-03T03:27:28.629291+00:00 app[web.1]:           "url": "https://instagrampl.heroku.com/parse/files/dksjh23ksajdf23jksadfkj3/836f7b2487ef7aac037ea763f25e145b_9f983dba-ec35-42b8-8773-b597cf782edd.jpg"
2016-11-03T03:27:28.629291+00:00 app[web.1]:         },
2016-11-03T03:27:28.629292+00:00 app[web.1]:         "caption": "dreaming of this",
2016-11-03T03:27:28.629292+00:00 app[web.1]:         "userId": "REFpNvOn7K",
2016-11-03T03:27:28.629293+00:00 app[web.1]:         "updatedAt": "2016-08-18T22:11:25.662Z",
2016-11-03T03:27:28.629293+00:00 app[web.1]:         "createdAt": "2016-08-18T16:33:27.864Z",
2016-11-03T03:27:28.629294+00:00 app[web.1]:         "ACL": {
2016-11-03T03:27:28.629294+00:00 app[web.1]:           "*": {
2016-11-03T03:27:28.629295+00:00 app[web.1]:             "read": true
2016-11-03T03:27:28.629295+00:00 app[web.1]:           },
2016-11-03T03:27:28.629296+00:00 app[web.1]:           "pdzQVKkCRP": {
2016-11-03T03:27:28.629296+00:00 app[web.1]:             "read": true,
2016-11-03T03:27:28.629297+00:00 app[web.1]:             "write": true
2016-11-03T03:27:28.629298+00:00 app[web.1]:           }
2016-11-03T03:27:28.629298+00:00 app[web.1]:         }
2016-11-03T03:27:28.629299+00:00 app[web.1]:       },
2016-11-03T03:27:28.629300+00:00 app[web.1]:       {
2016-11-03T03:27:28.629300+00:00 app[web.1]:         "objectId": "WjRiGJAcWI",
2016-11-03T03:27:28.629301+00:00 app[web.1]:         "imageFile": {
2016-11-03T03:27:28.629302+00:00 app[web.1]:           "__type": "File",
2016-11-03T03:27:28.629302+00:00 app[web.1]:           "name": "bf281326adeacb41606a3448bf6dace4_99d53a1f-feef-40e1-8bb3-7dd55a43c8b7.jpg",
2016-11-03T03:27:28.629303+00:00 app[web.1]:           "url": "https://instagrampl.heroku.com/parse/files/dksjh23ksajdf23jksadfkj3/bf281326adeacb41606a3448bf6dace4_99d53a1f-feef-40e1-8bb3-7dd55a43c8b7.jpg"
2016-11-03T03:27:28.629303+00:00 app[web.1]:         },
2016-11-03T03:27:28.629304+00:00 app[web.1]:         "caption": "waitamin",
2016-11-03T03:27:28.629305+00:00 app[web.1]:         "userId": "REFpNvOn7K",
2016-11-03T03:27:28.629305+00:00 app[web.1]:         "updatedAt": "2016-08-18T20:09:53.771Z",
2016-11-03T03:27:28.629306+00:00 app[web.1]:         "createdAt": "2016-08-18T18:01:30.527Z",
2016-11-03T03:27:28.629307+00:00 app[web.1]:         "ACL": {
2016-11-03T03:27:28.629307+00:00 app[web.1]:           "*": {
2016-11-03T03:27:28.629313+00:00 app[web.1]:             "read": true
2016-11-03T03:27:28.629313+00:00 app[web.1]:           },
2016-11-03T03:27:28.629313+00:00 app[web.1]:           "pdzQVKkCRP": {
2016-11-03T03:27:28.629314+00:00 app[web.1]:             "read": true,
2016-11-03T03:27:28.629314+00:00 app[web.1]:             "write": true
2016-11-03T03:27:28.629314+00:00 app[web.1]:           }
2016-11-03T03:27:28.629315+00:00 app[web.1]:         }
2016-11-03T03:27:28.629315+00:00 app[web.1]:       },
2016-11-03T03:27:28.629315+00:00 app[web.1]:       {
2016-11-03T03:27:28.629316+00:00 app[web.1]:         "objectId": "7EthkeZfAN",
2016-11-03T03:27:28.629316+00:00 app[web.1]:         "imageFile": {
2016-11-03T03:27:28.629316+00:00 app[web.1]:           "__type": "File",
2016-11-03T03:27:28.629317+00:00 app[web.1]:           "name": "41229e076d7c3f15565e654048c9a53f_02de94f8-0e7d-4555-bc23-2805b32b5ee6.jpg",
2016-11-03T03:27:28.629317+00:00 app[web.1]:           "url": "https://instagrampl.heroku.com/parse/files/dksjh23ksajdf23jksadfkj3/41229e076d7c3f15565e654048c9a53f_02de94f8-0e7d-4555-bc23-2805b32b5ee6.jpg"
2016-11-03T03:27:28.629318+00:00 app[web.1]:         },
2016-11-03T03:27:28.629318+00:00 app[web.1]:         "caption": "spicy peanut sauce",
2016-11-03T03:27:28.629318+00:00 app[web.1]:         "userId": "REFpNvOn7K",
2016-11-03T03:27:28.629319+00:00 app[web.1]:         "updatedAt": "2016-08-19T04:04:08.817Z",
2016-11-03T03:27:28.629319+00:00 app[web.1]:         "createdAt": "2016-08-19T04:04:08.817Z",
2016-11-03T03:27:28.629319+00:00 app[web.1]:         "ACL": {
2016-11-03T03:27:28.629320+00:00 app[web.1]:           "*": {
2016-11-03T03:27:28.629320+00:00 app[web.1]:             "read": true
2016-11-03T03:27:28.629320+00:00 app[web.1]:           },
2016-11-03T03:27:28.629321+00:00 app[web.1]:           "REFpNvOn7K": {
2016-11-03T03:27:28.629321+00:00 app[web.1]:             "read": true,
2016-11-03T03:27:28.629321+00:00 app[web.1]:             "write": true
2016-11-03T03:27:28.629322+00:00 app[web.1]:           }
2016-11-03T03:27:28.629322+00:00 app[web.1]:         }
2016-11-03T03:27:28.629322+00:00 app[web.1]:       },
2016-11-03T03:27:28.629323+00:00 app[web.1]:       {
2016-11-03T03:27:28.629323+00:00 app[web.1]:         "objectId": "wpuFav1vly",
2016-11-03T03:27:28.629323+00:00 app[web.1]:         "imageFile": {
2016-11-03T03:27:28.629324+00:00 app[web.1]:           "__type": "File",
2016-11-03T03:27:28.629324+00:00 app[web.1]:           "name": "96c150e63f9404b848577dca28ec2c38_9620a5ff-2500-4aa3-9e98-00f00b24d8fa.jpg",
2016-11-03T03:27:28.629325+00:00 app[web.1]:           "url": "https://instagrampl.heroku.com/parse/files/dksjh23ksajdf23jksadfkj3/96c150e63f9404b848577dca28ec2c38_9620a5ff-2500-4aa3-9e98-00f00b24d8fa.jpg"
2016-11-03T03:27:28.629325+00:00 app[web.1]:         },
2016-11-03T03:27:28.629325+00:00 app[web.1]:         "caption": "bella!",
2016-11-03T03:27:28.629326+00:00 app[web.1]:         "userId": "REFpNvOn7K",
2016-11-03T03:27:28.629326+00:00 app[web.1]:         "createdAt": "2016-11-02T16:38:45.357Z",
2016-11-03T03:27:28.629327+00:00 app[web.1]:         "updatedAt": "2016-11-02T16:38:45.357Z",
2016-11-03T03:27:28.629327+00:00 app[web.1]:         "ACL": {
2016-11-03T03:27:28.629327+00:00 app[web.1]:           "*": {
2016-11-03T03:27:28.629328+00:00 app[web.1]:             "read": true
2016-11-03T03:27:28.629328+00:00 app[web.1]:           },
2016-11-03T03:27:28.629328+00:00 app[web.1]:           "REFpNvOn7K": {
2016-11-03T03:27:28.629329+00:00 app[web.1]:             "read": true,
2016-11-03T03:27:28.629329+00:00 app[web.1]:             "write": true
2016-11-03T03:27:28.629329+00:00 app[web.1]:           }
2016-11-03T03:27:28.629329+00:00 app[web.1]:         }
2016-11-03T03:27:28.629330+00:00 app[web.1]:       }
2016-11-03T03:27:28.629330+00:00 app[web.1]:     ]
2016-11-03T03:27:28.629331+00:00 app[web.1]:   }
2016-11-03T03:27:28.665104+00:00 heroku[router]: at=info method=POST path="/parse/classes/Posts" host=instagrampl.herokuapp.com request_id=36a4510d-e92f-44c7-91d8-2ba83944925d fwd="99.250.153.14" dyno=web.1 connect=1ms service=23ms status=200 bytes=2951
2016-11-03T03:27:28.622261+00:00 heroku[router]: at=info method=POST path="/parse/classes/Posts" host=instagrampl.herokuapp.com request_id=0d47de4c-1abe-4781-a216-202730b4f41f fwd="99.250.153.14" dyno=web.1 connect=1ms service=20ms status=200 bytes=1020
2016-11-03T03:27:28.763705+00:00 app[web.1]: } results=[objectId=Qg2NEeRARY, __type=File, name=fc5a3d01b38c1bb7817dfff70cbd19e5_99d53a1f-feef-40e1-8bb3-7dd55a43c8b7.jpg, url=https://instagrampl.heroku.com/parse/files/dksjh23ksajdf23jksadfkj3/fc5a3d01b38c1bb7817dfff70cbd19e5_99d53a1f-feef-40e1-8bb3-7dd55a43c8b7.jpg, caption=did I post this one already?, userId=REFpNvOn7K, updatedAt=2016-08-18T20:09:56.460Z, createdAt=2016-08-18T16:22:32.213Z, read=true, read=true, write=true, objectId=uIV4fC3lHb, __type=File, name=836f7b2487ef7aac037ea763f25e145b_9f983dba-ec35-42b8-8773-b597cf782edd.jpg, url=https://instagrampl.heroku.com/parse/files/dksjh23ksajdf23jksadfkj3/836f7b2487ef7aac037ea763f25e145b_9f983dba-ec35-42b8-8773-b597cf782edd.jpg, caption=dreaming of this, userId=REFpNvOn7K, updatedAt=2016-08-18T22:11:25.662Z, createdAt=2016-08-18T16:33:27.864Z, read=true, read=true, write=true, objectId=WjRiGJAcWI, __type=File, name=bf281326adeacb41606a3448bf6dace4_99d53a1f-feef-40e1-8bb3-7dd55a43c8b7.jpg, url=https://instagrampl.heroku.com/parse/files/dksjh23ksajdf23jksadfkj3/bf281326adeacb41606a3448bf6dace4_99d53a1f-feef-40e1-8bb3-7dd55a43c8b7.jpg, caption=waitamin, userId=REFpNvOn7K, updatedAt=2016-08-18T20:09:53.771Z, createdAt=2016-08-18T18:01:30.527Z, read=true, read=true, write=true, objectId=7EthkeZfAN, __type=File, name=41229e076d7c3f15565e654048c9a53f_02de94f8-0e7d-4555-bc23-2805b32b5ee6.jpg, url=https://instagrampl.heroku.com/parse/files/dksjh23ksajdf23jksadfkj3/41229e076d7c3f15565e654048c9a53f_02de94f8-0e7d-4555-bc23-2805b32b5ee6.jpg, caption=spicy peanut sauce, userId=REFpNvOn7K, updatedAt=2016-08-19T04:04:08.817Z, createdAt=2016-08-19T04:04:08.817Z, read=true, read=true, write=true, objectId=wpuFav1vly, __type=File, name=96c150e63f9404b848577dca28ec2c38_9620a5ff-2500-4aa3-9e98-00f00b24d8fa.jpg, url=https://instagrampl.heroku.com/parse/files/dksjh23ksajdf23jksadfkj3/96c150e63f9404b848577dca28ec2c38_9620a5ff-2500-4aa3-9e98-00f00b24d8fa.jpg, caption=bella!, userId=REFpNvOn7K, createdAt=2016-11-02T16:38:45.357Z, updatedAt=2016-11-02T16:38:45.357Z, read=true, read=true, write=true]

And these from xcode console:


2016-11-02 23:27:28.968 Instagram[12278:3370417] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2016-11-02 23:27:28.969 Instagram[12278:3428329] [Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
2016-11-02 23:27:28.969 Instagram[12278:3428329] [Error]: Network connection failed. Making attempt 1 after sleeping for 1.044739 seconds.
2016-11-02 23:27:29.731 Instagram[12278:3370417] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2016-11-02 23:27:29.732 Instagram[12278:3428347] [Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
2016-11-02 23:27:29.732 Instagram[12278:3428347] [Error]: Network connection failed. Making attempt 1 after sleeping for 1.901732 seconds.
2016-11-02 23:27:30.259 Instagram[12278:3370417] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2016-11-02 23:27:30.260 Instagram[12278:3428348] [Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
2016-11-02 23:27:30.260 Instagram[12278:3428348] [Error]: Network connection failed. Making attempt 2 after sleeping for 2.089479 seconds.
2016-11-02 23:27:31.941 Instagram[12278:3370417] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2016-11-02 23:27:31.941 Instagram[12278:3428360] [Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
2016-11-02 23:27:31.942 Instagram[12278:3428360] [Error]: Network connection failed. Making attempt 2 after sleeping for 3.803464 seconds.
2016-11-02 23:27:32.746 Instagram[12278:3370417] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2016-11-02 23:27:32.747 Instagram[12278:3428349] [Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
2016-11-02 23:27:32.747 Instagram[12278:3428349] [Error]: Network connection failed. Making attempt 3 after sleeping for 4.178958 seconds.
2016-11-02 23:27:36.228 Instagram[12278:3370417] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2016-11-02 23:27:36.228 Instagram[12278:3428347] [Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
2016-11-02 23:27:36.229 Instagram[12278:3428347] [Error]: Network connection failed. Making attempt 3 after sleeping for 7.606928 seconds.
2016-11-02 23:27:37.472 Instagram[12278:3370417] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2016-11-02 23:27:37.473 Instagram[12278:3428329] [Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
2016-11-02 23:27:37.473 Instagram[12278:3428329] [Error]: Network connection failed. Making attempt 4 after sleeping for 8.357916 seconds.
2016-11-02 23:27:44.663 Instagram[12278:3370417] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2016-11-02 23:27:44.664 Instagram[12278:3428348] [Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
2016-11-02 23:27:44.665 Instagram[12278:3428348] [Error]: Network connection failed. Making attempt 4 after sleeping for 15.213855 seconds.
2016-11-02 23:27:46.814 Instagram[12278:3370417] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2016-11-02 23:27:46.814 Instagram[12278:3428360] [Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
2016-11-02 23:27:46.931 Instagram[12278:3370417] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2016-11-02 23:27:46.932 Instagram[12278:3428329] [Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
2016-11-02 23:27:46.932 Instagram[12278:3428329] [Error]: Network connection failed. Making attempt 1 after sleeping for 1.362234 seconds.
2016-11-02 23:27:48.709 Instagram[12278:3370417] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2016-11-02 23:27:48.710 Instagram[12278:3428348] [Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
2016-11-02 23:27:48.710 Instagram[12278:3428348] [Error]: Network connection failed. Making attempt 2 after sleeping for 2.724468 seconds.
2016-11-02 23:27:51.863 Instagram[12278:3370417] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2016-11-02 23:27:51.863 Instagram[12278:3428360] [Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
2016-11-02 23:27:51.864 Instagram[12278:3428360] [Error]: Network connection failed. Making attempt 3 after sleeping for 5.448936 seconds.
2016-11-02 23:27:57.965 Instagram[12278:3370417] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2016-11-02 23:27:57.966 Instagram[12278:3428360] [Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
2016-11-02 23:27:57.967 Instagram[12278:3428360] [Error]: Network connection failed. Making attempt 4 after sleeping for 10.897871 seconds.
2016-11-02 23:28:00.921 Instagram[12278:3370417] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2016-11-02 23:28:00.922 Instagram[12278:3428347] [Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
2016-11-02 23:28:00.924 Instagram[12278:3370306] Warning: Attempt to present <UIAlertController: 0x7ff3c272bf60>  on <Instagram.FeedTableViewController: 0x7ff3c2725f30> which is already presenting (null)
2016-11-02 23:28:10.075 Instagram[12278:3370417] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2016-11-02 23:28:10.076 Instagram[12278:3428418] [Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
2016-11-02 23:28:10.078 Instagram[12278:3370306] Warning: Attempt to present <UIAlertController: 0x7ff3c4a146e0>  on <Instagram.FeedTableViewController: 0x7ff3c2725f30> which is already presenting (null)

@plaudev
Copy link

plaudev commented Dec 12, 2016

@flovilmart, just an update as I continue to try figuring this out... seeing very odd results...

For the parse instance that previously I said the publicSeverURL solution did not work, I went to clean all the data out and restarted from scratch to post several different images to the database under different usernames... using an actual device (iOS 9.3.5). Surprisingly all that worked with ATS kept on.

However when I run exactly the same app on the simulator (iOS 9.3) signing in as exactly the same users with ATS kept on, I could not load a single image and got these same error msgs again for every image I try to download:

NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
[Error]: An SSL error has occurred and a secure connection to the server cannot be made. (Code: 100, Version: 1.14.2)
[Error]: Network connection failed. Making attempt 4 after sleeping for 15.848020 seconds.

How could that be? Why would the same code in simulator try to load via http instead of https?

@flovilmart
Copy link
Contributor

Can you ensure the SSL certificates are valid? See: https://forums.developer.apple.com/thread/22324.

Your file URL look OK

@jayliew
Copy link

jayliew commented Jan 22, 2017

Can confirm this solved it for me when my images were not loading on a simulator from Parse on Heroku.

Add this to Parse Server's index.js file where you create the server:

publicServerURL: process.env.PARSE_PUBLIC_SERVER_URL || 'https://hostname.herokuapp.com/parse',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants