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

Code Search is returning a Json parsing issue

    XMLWordPrintable

Details

    Description

      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>"
        

      Attachments

        Issue Links

          Activity

            People

              alifatou Anna
              0298b2749e0b Mateus T
              Votes:
              5 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: