Custom REST API Endpoint image path

Hi,

I am currently using the Pimcore Demo with the car’s e-commerce. I create a custom rest API endpoint which returns my data fine when only querying the car object. When I try to get data such as the car manufacturer I seem to be having an issue getting the manufacturer logo, I am perfectly able to get the name of the manufacturer but no the path to the logo. I get the following error:

I also have the issue when trying to access object brick data:

Please advise on how to approach these issues.

Kind Regards
Derick

@DerickVanDerSandt Are you sure the manufacturer has image attached to it?

You might be getting these errors because there is no image attached to manufacturer and also car does not have that brick - SaleImformation added to it.

kindly check before returning data.