Thanks @swissspidy for your explanation.
What if I continue using Web Stories plugin and just save the “web-story” post_content with PHP generated AMP story HTML markup in such case does the plugin takes care of the JSON story data and other things?
If yes, the what are the other things I need to save while using “wp_insert_post”?
I’m also getting similar error; debug log is here
Versions:
WordPress: 5.2.1
WordPress MS: No
PHP: 7.2.24
WP Mail SMTP: 1.8.1
Params:
Mailer: sendgrid
Constants: No
Api Key: Yes
Debug:
cURL error 18: transfer closed with 116 bytes remaining to read