500 InternalServerError when getting content whose main body contains a block

Found in

EPiServer.ContentDeliveryApi 1.0.1

Fixed in

EPiServer.ContentDeliveryApi 2.1.0

Created

Jun 29, 2018

Updated

Oct 30, 2018

State

Closed, Fixed and tested


Description

Preconditions

  • An editor block in published status.
  • A page (standard page, article, or product).

Steps to reproduce

  1. Add the block to the page's main body field.
  2. Publish the page.
  3. Get content by ID.

    ({{EPCMSHost}}/api/episerver/v1.0/content/149)
    

Expected
Return info about the page.

Actual

Get  500 InternalServerError
 "error": {
        "code": "InternalServerError",
        "message": "Exception has been thrown by the target of an invocation."
    }