Skip to content

no /1/ in api.parse.com #352

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
AndroidGecko opened this issue Jan 18, 2016 · 5 comments
Closed

no /1/ in api.parse.com #352

AndroidGecko opened this issue Jan 18, 2016 · 5 comments
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@AndroidGecko
Copy link

I have a very strange issue.
When running a very simple project from scratch with :

    Parse.enableLocalDatastore(this);
    Parse.initialize(this);
    ParseObject testObject = new ParseObject("TestObject");
    testObject.put("foo", "bar");
    testObject.saveInBackground();

everything works fine
the request is made to
https://api.parse.com/1/classes/TestObject
and everything works fine

However if I try to integrate my existing app and place same code inside custom application (+keys in manifest) the api call fails with 404. Reason being that it pokes
https://api.parse.com/classes/TestObject

notice lack of /1/

If I manually catch above request in proxy and re-execute it with same data, it passes.

Any ideas why the /1/ is not being added?

@wangmengyan95 wangmengyan95 added type:bug Impaired feature or lacking behavior that is likely assumed needs more info labels Jan 19, 2016
@parse-github-bot
Copy link

Thank you for your feedback. We prioritize issues that have clear and concise repro steps. Please see our Bug Reporting Guidelines about what information should be added to this issue.

Please try the latest SDK. Our release notes have details about what issues were fixed in each release.

In addition, you might find the following resources helpful:

@wangmengyan95
Copy link
Contributor

Hi @AndroidGecko, thanks for your information. We do have a bug in the master branch about the lack of /1 issue you mention. If you are using the snapshot version, then it is fine. But if you are using the formal release verisn, could you tell us your version number and how do you change the manifest, thanks!

@wangmengyan95
Copy link
Contributor

#356

@AndroidGecko
Copy link
Author

Thanks @wangmengyan95
Got it working with snapshot and

Parse.initialize(
        new Parse.Configuration.Builder(this).server("https://api.parse.com/1/").build());

also seems to be working on 1.12.0
after running

gradle build --refresh-dependencies

since I was using 1.+ earlier

Thanks!
btw - that is one great sdk!

@wangmengyan95
Copy link
Contributor

@AndroidGecko thanks. The fix has been merged into master and it will be shipped in next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

3 participants