Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-14768

Repositories query (2.0 API) returns error 'need more than 1 value to unpack' for full_name ~ contains query

    XMLWordPrintable

Details

    Description

      If I try to perform a "full_name contains" query with a string that does NOT contain a slash , I get a Python error from the Bitbucket API:

      #!shell
      
      $ export BB_PASSWORD=an-app-password-i-just-generated
      $ curl -u sqs:$BB_PASSWORD 'https://api.bitbucket.org/2.0/repositories?role=member&q=full_name~"private"'
      {"type": "error", "error": {"message": "need more than 1 value to unpack", "id": "ebd11aa761d44cffbe9b56e7a75ac407"}}
      

      The following queries do work:

      • full_name ~ "sqs/private" (when the query string contains a slash)
      • name ~ "private"

      I would like to be able to perform a "full_name contains" query so that my query will match over both team and name fields, so it can show as-you-type results better.

      Attachments

        Activity

          People

            Unassigned Unassigned
            e9aab123be85 Quinn Slack
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: