passionweb-manuel-schnabel / ai-seo-helper

Generates SEO metadata based on content using AI. Currently several metadata for pages and articles of EXT:news can be generated using an additional button next to the corresponding input fields.
9 stars 5 forks source link

Request Error #3

Closed wowaTYPO3 closed 1 year ago

wowaTYPO3 commented 1 year ago

I just wanted to generate a description with the current version of the extension, and then got this error message in the TYPO3 backend. Probably a problem with openai? I have tried several times.

{"success":false,"error":"Server error: POST https:\/\/api.openai.com\/v1\/completions resulted in a 500 Internal Server Error response:\n{\n \"error\": {\n \"message\": \"Internal server error\",\n \"type\": \"auth_subrequest_error\",\n \"param\": n (truncated...)\n"}

passionweb-manuel-schnabel commented 1 year ago

Yes, exactly.

This error message always comes when the API or OpenAI is generally not available (which unfortunately happened from time to time in the last few days).

But I will specifically try to catch this error message and provide better information so that you know that the API is currently unavailable.

passionweb-manuel-schnabel commented 1 year ago

I have just released version 0.2.2 and made the mentioned adjustments to the error handling. Now, if the API cannot be reached and if the API key is missing, a more informative notification should appear.

Of course we hope that the accessibility of the API will stabilize in the near future and that we won't see that error message so often anymore ;-)

Thank you for reporting the issue again.