[Content-Search-API] Error code 500 when no parameter on searching

Found in

EPiServer.ContentDeliveryApi 1.0.1

Fixed in

EPiServer.ContentDeliveryApi 2.1.0

Created

Jul 04, 2018

Updated

Oct 30, 2018

State

Closed, Fixed and tested


Description

Steps to reproduce:

  1. Senda request via Postman, for example:

{{EPCMSHost}}/api/episerver/v1.0/search/content

Expected:
It returns all content that matches the criteria

Actual:
Error 500 External error:

{
    "error": {
        "code": "InternalServerError",
        "message": "Unable to retrieve search response"
    }
}

If input personalize = false (by default personalize = false), all content is returned normally.