Code Search is returning a Json parsing issue

XMLWordPrintable

    • 6
    • Severity 3 - Minor
    • 8,471

      Issue Summary

      • When searching on Code search for any specific string, sometimes, the search returns a json parsing error:
        {
          "type": "error",
          "error": {
            "message": "Expecting value: line 1 column 1 (char 0)"
          }
        }
        

      • This issue does not affect all users, meaning one user could be facing this issue searching for code and another one might not face it;

      Steps to Reproduce

      1. Open your workspace;
      2. Click on the search icon to search for code on your workspace

      Expected Results

      • Code search should return the results of your query;

      Actual Results

      • Code search is failing with a Json parsing issue;

      Workaround

      • As a workaround it is possible to use our REST API to fetch this information:
        $ Curl -X GET "https://api.bitbucket.org/2.0/teams/<workspace>/search/code?search_query=<query>"
        

            Assignee:
            Anna (Inactive)
            Reporter:
            Mateus T
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: