We have just installed the CTP2CTP 2.0 Model Service (CD Microservice) from the official SDL documentation: Model Service DocumentationModel Service Documentation
After successfully installing the service and calling the PageModelPageModel
endpoint, the modelData
returned is nullnull
. ThereforTherefore the DXA webapp throws exceptions.
Following endpoint was called:
http://172.19.3.2:8998/PageModel/tcm/1206/en?include=INCLUDE
The Service returns a small JSON without modelData
:
{
Id: "tcm:1206-368946-64",
Meta: { },
Title: "000 Home"
}
The nullpointer exception is thrown because the modelData
is null:
I double checked the configurations and also increased the logging up to DEBUGDEBUG
but had no luck finding any configuration or connection issues. If iI add ?raw=true
to the PageModel
request, all my componentsComponents that are on my pagePage are getting listed in the JSON.