Skip to content

Bug in server/Parse.initialize #393

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
rogerhu opened this issue Feb 7, 2016 · 4 comments
Closed

Bug in server/Parse.initialize #393

rogerhu opened this issue Feb 7, 2016 · 4 comments

Comments

@rogerhu
Copy link
Contributor

rogerhu commented Feb 7, 2016

According to:

https://parse.com/docs/server/guide

Parse.initialize(new Parse.Configuration.Builder(this)
                .server("https://parse-testing-port.herokuapp.com/parse")

If I add LogCat interceptor, I see the URL as (assuming I'm posting a Message object):

Url : https://parse-testing-port.herokuapp.com/classes/Message

The workaround is to set PARSE_MOUNT to be '/' to avoid this issue (https://github.com/codepath/android_guides/wiki/Configuring-a-Parse-Server).

@jpmassena
Copy link

I worked around this issue this way:

PARSE_MOUNT: '/my-app'

Parse.initialize(new Parse.Configuration.Builder(this)
                .server("https://parse-server-url.com/my-app/")

Adding the / at the end sends the URLs correctly.

@liquiddandruff
Copy link

Confirm that adding the / at the end fixes this. Thanks a lot to codepath for the guide.

@grantland
Copy link
Contributor

Closing as resolved.

@rogerhu
Copy link
Contributor Author

rogerhu commented Apr 7, 2016

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