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

Sample code for advanced query produces Error 400: Bad Request during HTTP GET from /rest-1.v1/Data/Story #20

Open
Rich8449 opened this issue Dec 16, 2014 · 2 comments

Comments

@Rich8449
Copy link

When attempting to run the following sample code from the readme I receive the following error:

Sample code:

    for s in (v1.Story.filter("Estimate>'5',TotalDone.@Count<'10'").select('Name')):
        print s.Name

v1pysdk.client.V1Error:
Invalid WHERE parameterInvalid QueryFilter2 token Estimate>'5', TotalDone.@count<'10'Position 14: unexpected char: ' '

Process finished with exit code 1

@ddraayer
Copy link

ddraayer commented Oct 9, 2015

I'm not able to test this at the moment (cert validation issues), but my guess is that the comma before TotalDone should be a semicolon. I'm basing this on http://community.versionone.com/Developers/Developer-Library/Documentation/Data_API/Queries/where

@mtalexan
Copy link

It is a documentation issue. There are a couple of forks of this unmaintained project that fix the documentation:
https://github.com/mtalexan/VersionOne.SDK.Python

selenorks pushed a commit to selenorks/VersionOne.SDK.Python that referenced this issue Sep 1, 2020
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

3 participants