I have an extension that has some code to save a custom object via REST API service.
I have a try and catch (\Exception $e) around the save method, but for some reason I get the following message:
{
"message":"Internal Error. Details are available in Magento log file. Report ID: webapi-5c481b2831e76"
}
The log shows:
main.CRITICAL: Report ID: webapi-5c481b2831e76; Message: Property "aaa" does not have corresponding setter in class "Company\Module\Api\Data\MyCustomClass"
I assume the error is being thrown from within the REST API code - because the object (which is in the method signature) is not able to be instantiated.
So how to catch this.