Infinite Reload Loop in Visual Editor for Programmatically Created Content

I have a drag and drop Blog Post and I’m experiencing an infinite reload loop in the Builder.io visual editor when trying to edit content entries that were programmatically created via the Builder.io Write API. The editor continuously alternates between the edit URL and non-edit URL without successfully loading the preview iframe.

I also cannot archive these entries.

Specific behavior:

  • URL alternates between:

    • https://builder.io/content/[CONTENT_ID]/edit

    • https://builder.io/content/[CONTENT_ID]

  • The visual editor never stabilizes and keeps reloading

  • Content works perfectly when rendered locally OR Preview URL

  • Content created manually through the Builder.io UI works fine in the editor

Link to affected content:

  • Example entry: https://builder.io/content/4c6dae2e5db7422ea856eaa0d724d146/edit

  • Model: resource-guide-model

Code stack you are integrating Builder with
NextJS

Hello @nicolle,

We’ve investigated the issue, and it appears that it may be related to the data.blocks field being sent in your Write API request body.

Here’s the Content API call for the affected entry for your reference:
https://cdn.builder.io/api/v3/content/resource-guide-model?apiKey=9ddb1921a754418bb8cdf6ce5211998e&query.id=4c6dae2e5db7422ea856eaa0d724d146&limit=1

Could you please try sending the request without the data.blocks field in the request body and let us know if that resolves the issue?

Additionally, if you can share the JSON payload you are currently sending, we can review it in more detail to help identify the root cause.

Looking forward to your update.

Thanks,