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

Issue #14768 new
Quinn Slack
created an issue

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:

$ 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.

Comments (0)

  1. Log in to comment