Skip to content
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

Three problems: Email Adapter, File Upload, GCS config. #63

Open
r0712v opened this issue Sep 6, 2016 · 1 comment
Open

Three problems: Email Adapter, File Upload, GCS config. #63

r0712v opened this issue Sep 6, 2016 · 1 comment
Labels

Comments

@r0712v
Copy link

r0712v commented Sep 6, 2016

Parse Server version: 'yongjhih/parse-server:dev' 2.2.18
Parse Dashboard version: 1.0.18

1st problem: Even though I have configured my domain with Mailgun, and added the email, appname, and public server url variables into docker when starting it up, I still get the error from parse: "An app Name, public Server URL, and emailAdapter are required for password reset functionality."

2nd problem: Can't upload any files from Javascript SDK. Using identical file upload code from documentation.
Error in Chrome: XMLHttpRequest cannot load https://domain.com/parse/files/Photo.jpg. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://domain.com' is therefore not allowed access. The response had HTTP status code 413.

3rd problem: GCP/GCS fileadapter config is also being ignored by docker. File upload in Dashboard goes to gridstore, and in my javascript app I still get the same error as in problem number 2.

Here is my docker config for parse-server:

 docker run -d \
             -e DATABASE_URI=${DATABASE_URI:-mongodb://parse:[email protected]:27017/appname?ssl=true} \
             -e APP_ID=id\
             -e MASTER_KEY=masterkey\
         -e FILE_KEY=filekey  \
         -e APP_NAME=appname\
         -e PUBLIC_SERVER_URL=https://domain.com/parse  \
         -e VERIFY_USER_EMAILS=true\
         -e EMAIL_MODULE=parse-server-simple-mailgun-adapter\
         -e [email protected]\
         -e EMAIL_DOMAIN=domain.com\
         -e EMAIL_API_KEY=key\
         -e GCP_PROJECT_ID=project-000000\
         -e GCP_KEYFILE_PATH=project-000000xxxxxx.json\
         -e GCS_BUCKET=project-storage\
         -e ALLOW_CLIENT_CLASS_CREATION=false\
         -e MAX_UPLOAD_SIZE=100mb\
             -p 127.0.0.1:1337:1337\
             --name parse-server\
             yongjhih/parse-server:dev
@yongjhih
Copy link
Owner

yongjhih commented Sep 7, 2016

Hi @r0712v,

  1. I tried mailgun before, it works for me. I'll try to reproduce it.
  2. I've never try that file uploading before, I think it maybe upstream issue(ParseServer) if it's not working.

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

No branches or pull requests

2 participants