Set srcset on a block image

Ok, I found the issue.

After uploading the image programmatically I was calling wp_update_attachment_metadata to set the file metadata.

Apparently, that was creating this issue and srcset was not being set.

I have no idea why this is related though 🙂

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)