Skip to content

Displaying Parse Images (AWS + Mongolab + Android) #415

Closed
@rafapetter

Description

@rafapetter

I'm still having problems displaying parse images even after following all migration guide. Here's the error android is returning:

ENOENT (No such file or directory) : /data/data/com.xxxx.xxxx/cache/com.parse/files/http:/files.parsetfss.com/invalid-file-key/tfss-xxx-xxx-xxx-xxx-xxx-profile_xxxx.jpg.tmp
com.parse.ParseException: Download from S3 failed. Forbidden

So here is what I have done so far:

  • migrated to AWS and MonboLab (data migrated according to parse guide)
  • currently testing on Android, running latest sdk version.
  • have set the fileKey in the index.js configuration
  • have set the fileKey in the AWS environment variables

Here is the configuration on index.js:

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 || 'xxxx',
  masterKey: process.env.MASTER_KEY || 'xxxxxx',
  fileKey: process.env.FILE_KEY || 'xxx-xxx-xx-xxx-xxxx',
  facebookAppIds: ['xxxx'],
  serverURL: 'http://parseserver-xxx-env.elasticbeanstalk.com/parse/'
});

Appreciate any help. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions