Google search console flagged a couple of my AMP pages with the error: Error in required structured data element
When I use the URL inspection tool, it says:
Linked AMP version is valid with warnings
Error in required structured data element
But in the HTML section of the crawled page, it says Sorry--no code highlighting available for this issue. I made sure to do a Live Test and not use code from Google's index.
However, when I run the same URL thrugh Google's Structured Data Testing Tool, it says there are 0 errors and 0 warnings. Additionally, when I add #development=1 to the end of the URL and use the Chrome DevTools console, it says AMP validation successful.
How can I find what the error is?
I want to add that all of the URLs with this issue are using the same template, and no valid URLs are using this template, so it's obvious this is not random.