Closed skint007 closed 8 months ago
The issue was with a conditional field that had the beginning tag but not the ending tag when trying to import/create. Also another issue that caused the same issue, trying to import a template with a cloze, but not specifying it is of cloze type. I've also noticed you get the same exact error if you try to use a field that doesn't exist in the field list, for example mistyping a fieldname :)
I have a PowerShell script that reads templates and imports them into Anki. I'm currently having an issue with importing one of them and the error given isn't very descriptive.
I've taken a look at the Card template has a problem page in the Anki docs but all of those have descriptions.
This is the json I'm sending to Anki-Connect
This is the error I get back
I'm not sure if this is an issue in the HTML templates or a something with Ank-Connect communicating with Anki? We can manually add this template and Anki accepts it without issue.
This is the HTML that is parsed out and added to the front/back of the card template being sent.