Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: 400 response to requests when searching comments #3026

Closed
JakePT opened this issue Sep 27, 2022 · 0 comments · Fixed by #3058
Closed

BUG: 400 response to requests when searching comments #3026

JakePT opened this issue Sep 27, 2022 · 0 comments · Fixed by #3058
Assignees
Labels
bug Something isn't working
Milestone

Comments

@JakePT
Copy link
Contributor

JakePT commented Sep 27, 2022

Describe the bug
When searching comments in the admin with the Comments and Protected Content features added Debug Bar was showing a total of 4 requests, and 2 of those were returning a 400 error response with the following content:

{
    "error": {
        "root_cause": [
            {
                "type": "parsing_exception",
                "reason": "[term] query does not support [post]",
                "line": 1,
                "col": 642
            }
        ],
        "type": "x_content_parse_exception",
        "reason": "[1:642] [bool] failed to parse field [must]",
        "caused_by": {
            "type": "x_content_parse_exception",
            "reason": "[1:642] [bool] failed to parse field [must]",
            "caused_by": {
                "type": "parsing_exception",
                "reason": "[term] query does not support [post]",
                "line": 1,
                "col": 642
            }
        }
    },
    "status": 400
}

Apart from these errors in Debug Bar the actual search appeared to function as expected, so these responses appear to be for some secondary queries.

Steps to Reproduce

  1. Install Debug Bar and Debug Bar ElasticPress.
  2. Activate the Comments and Protected Content features.
  3. Go to Comments.
  4. Perform a search.
  5. Check the Elasticsearch responses is Debug Bar.

Expected behavior
There should not be any errors.

@JakePT JakePT added the bug Something isn't working label Sep 27, 2022
@JakePT JakePT added this to the 4.4.0 milestone Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants