contentful/contentful-import

Assets failing to publish

christineywang opened this issue · 2 comments

Hello,

I am filing this on behalf of another user (although, I've come across the same issue myself when performing imports).

Often, when using the import tool, one/some of the assets and/or entries will fail to publish. This is a bit hard to troubleshoot and I am not able to consistently recreate the issue (although I wonder if it is related to rate limiting).

Is there a way we could get some sort of an error message that would tell us why the entry/asset failed to publish? And if something fails to publish, can the tool automatically rerun the import (or at least, retry to publish the failed entries/assets)?

Thanks!

Hey Christine,

the tool is already rerunning failed publishes to workaround issues with linked entities which are not published at that point of time. It queues the entities and will abort as soon it could not publish at least one entity per run: https://github.com/contentful/contentful-batch-libs/blob/master/lib/push/publishing.js#L70-L109

For the assets: There are multiple reasons why this might fail, we are planning to implement payload validation to discover broken entities early and to tell the user whats wrong. See here: contentful/contentful-batch-libs#137

Best,
Benedikt

Payload validation was merged here.

Closing due to inactivity. Feel free to open another issue if you have more problems.