• Resolved henningnet

    (@henningnet)


    Hi, first at all, I love the plugin.

    My OpenAI account is eligible for the GPT-4 API, but pretty often I run into the error An error was caught (). Should we continue?.

    So the plugin works around 2 minutes on one article with the bulk editor and then gives me the error. This only happens with GPT-4 which is super slow in Playground and ChatGPT. So I am guessing on some kind of timeout?

    Any idea how to fix this or go around that? It does not happen with 3.5 Turbo tho.

    Again: Awesome plugin and super nice that its possible to change the prompt!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi,

    Do you know where this error comes from? Can you check your PHP Error Logs? Or maybe it’s a temporary timeout from OpenAI?

    Thread Starter henningnet

    (@henningnet)

    I was assuming that its some kind of timeout, because the fast Turbo does not have this problems and when I like tried to make GP4 content with less sections and content, it normally worked.

    Here is some excerpt from my error log, maybe that helps… not sure.

    [Thu Mar 23 21:07:16.864339 2023] [proxy_fcgi:error] [pid 19081:tid 139643026478848] [client myserversipaddress] AH01071: Got error ‘PHP message: The server had an error while processing your request. Sorry about that!’, referer: https://www.mydomain.com/wp-admin/edit.php?page=mwai_content_generator

    Will try to change my php timeout to a higher number and see if that helps.

    Plugin Author Jordy Meow

    (@tigroumeow)

    It looks very similar to this error: https://community.openai.com/t/openai-api-error-the-server-had-an-error-while-processing-your-request-sorry-about-that/53263

    In that case… you will not be able to do much I am afraid. But I am sure they will make this better ??

    Thread Starter henningnet

    (@henningnet)

    Hi Jordy,

    thanks for your answer. I thought I keep you updated on this. So I tried to change stuff on my server like Memory Limit, PHP execution time and similar options. I even put the website with the plugin on a bigger server with a bigger CPU and more RAM. On GPT-4 it did not change anything, still getting the error. I will elaborate more.

    But what I saw is that if I go over to Turbo (which works perfectly) and I choose “# of Sections” -> 12 and “# of Paragraphs per Section” -> 10 to get the like most possible content into one piece, I get the same error.

    So looks like this problem is on the side of openai and their API. Will read some manuals and see if I can get it to work, if so, will let you know.

    Again, thanks for that awesome plugin!

    Plugin Author Jordy Meow

    (@tigroumeow)

    You are welcome @henningnet! I really hope we can find a solution for this; it’s actually quite mysterious…

    Thread Starter henningnet

    (@henningnet)

    Ok, I tried to deactivate Cloudflare proxy… did not change anything. I added up more Timeout directly in the plugin code for the API (120 to 240), also did not help.

    I will give up for now and go with Turbo then as it works.

    Thread Starter henningnet

    (@henningnet)

    Ok, found it.

    1. Cloudways Hosting, I literally tried everything with them. I am not sure, there is something killing the connection and you get a timeout then, regardless what server settings you choose. So I went to DigitalOcean directly, now it works.
    2. Cloudflare. Limit is 100s, then CF kills the connection. So deactivate Cloudflare when working with 4.0 and this plugin.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘An error was caught (). Should we continue? With GPT-4’ is closed to new replies.