Getting an error when doing reindex for algolia_pages on magento 2

Hi All,

We are currently getting below error when doing algolia_pages reindex, it seems to be related to theme for product.

PHP TypeError:  Argument 2 passed to Magento\Catalog\Block\Product\ImageFactory::getLabel() must be of the type string, null given

Any advise?

Hey there,

I’m Dorian, software engineer at Algolia. Would it be possible to provide us with the full stack trace so that we know where this was called in our code base?

Also don’t hesitate to add as much detail as you can to help us solve this with you.

Thanks in advance

Hiya Dorian,

No worries, we found the RCA. It was related to some internal code.
Thanks for getting back.