AI Content Generator gives error
Opened this issue · 0 comments
jessebs commented
Describe the bug
When generating SEO keywords and SEO description from a field in Contentful, I get the error:
"The stream was interrupted. Please try again."
To Reproduce
Steps to reproduce the behavior:
- Create a new content item in Contentful
- Fill in the content
- Click "SEO Keywords"
- Fill in (content comes from a populated field, output is an unpopulated field)
Expected behavior
I expect content to be generated
Desktop (please complete the following information):
- OS: MacOS
- Browser: Firefox and Chrome
- Version Latest
Additional context
The following error is logged in the console
SyntaxError: Unterminated string in JSON at position 37 (line 1 column 38)
at JSON.parse (<anonymous>)
at Lt (index-230ca5b3.js:1:5402)
at Array.reduce (<anonymous>)
at Se.parseStream (index-230ca5b3.js:1:6453)
at async T (index-230ca5b3.js:21:6286)
at async onGenerate (index-230ca5b3.js:21:13803)
T @ index-230ca5b3.js:21
await in T (async)
onGenerate @ index-230ca5b3.js:21
T @ index-230ca5b3.js:21
p @ index-230ca5b3.js:21
p2 @ vendor-a55bbd80.js:44
v2 @ vendor-a55bbd80.js:44
m2 @ vendor-a55bbd80.js:44
qp @ vendor-a55bbd80.js:44
Jm @ vendor-a55bbd80.js:44
(anonymous) @ vendor-a55bbd80.js:44
ld @ vendor-a55bbd80.js:47
Om @ vendor-a55bbd80.js:44
Du @ vendor-a55bbd80.js:44
zf @ vendor-a55bbd80.js:44
x2 @ vendor-a55bbd80.js:44