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

403 error when trying to view files using GridStoreAdapter #3367

Closed
ranhsd opened this issue Jan 13, 2017 · 1 comment
Closed

403 error when trying to view files using GridStoreAdapter #3367

ranhsd opened this issue Jan 13, 2017 · 1 comment

Comments

@ranhsd
Copy link
Contributor

ranhsd commented Jan 13, 2017

Hi,
from some reason i get 403 error when i am trying to view files only when i am using the GridStoreAdapter. I have another parse server there i use Google cloud storage and everything works well.

Uploading of files works well the only problem is with download/view the files.

I set the serverURL to http://localhost:1337 and publicServerURL to point to my https domain (https://dev.******.mobi) but when i am trying to view the files i get 403 error (unauthorized)

Do you have any idea what can be the issue?

Thanks in advanced.

@ranhsd
Copy link
Contributor Author

ranhsd commented Jan 15, 2017

Ok, i managed to figure out what was the issue and actually it was a very strange issue.

I generated a new appId for my application and the generated key contained a / character and because the url of the file contain the appId the path was wrong and that's the reason why i was getting the 403 error. After i remove all the / from my appId everything work as expected.

@flovilmart I think that we need to add it to the docs that / is not allowed in appId or masterKey. If we want to allow this character we will need to escape and unescape .

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

2 participants