You can use InDesign's HTML object (Object > Insert HTML...) or use the in5 Web Content interactive widget (in5 > Interactive Widgets > Web Content). Here's more info:
in5 Web Content interactive widget
If you're still getting an error, we'd be happy to take a look at your InDesign file. You can send it to us at https://ajarproductions.com/pages/contact.php?category=in5?