Skip to content

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

Open

Description

@Rich8449

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

Activity

  1. ddraayer commented on Oct 9, 2015

    @ddraayer

    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

  2. mtalexan commented on Jun 13, 2018

    @mtalexan

    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

  3. added a commit that references this issue on Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions