Title: Error while calling OpenAI
Last modified: February 4, 2023

---

# Error while calling OpenAI

 *  Resolved [galih2505](https://wordpress.org/support/users/galih2505/)
 * (@galih2505)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-while-calling-openai/)
 * Hi Jordy,
 * I’ve got this error while trying to create content.
 * “Error while calling OpenAI: stream_socket_client(): SSL: Connection reset by
   peer stream_socket_client(): Failed to enable crypto stream_socket_client(): 
   unable to connect to ssl://api.openai.com:443”
 * I’m not sure whether it is because our server, the plugin or because of the OpenAI
   itself. Any clue?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-while-calling-openai/#post-16439092)
 * Hi [@galih2505](https://wordpress.org/support/users/galih2505/),
 * That’s not because of the plugin, and probably not because of OpenAI. The issue
   seems more linked to the fact your hosting service, or more specifically, your
   domain, might have an issue related to SSL. Could be bad certificates, for example.
 * I am just giving pointers, as I never had the issue myself, and never had any
   other users running into it. But it’s basically an issue that you would have 
   right now with any process involving a SSL connection between your WordPress 
   and a remote server.
 * If you are out of ideas, you can ask your hosting service, they might have some
   🙂
 *  [NBNTelevision](https://wordpress.org/support/users/nbntelevision/)
 * (@nbntelevision)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-while-calling-openai/#post-16439096)
 * Hi Guys, I just downladed the new update and it sent my site into critical error,
   in recovery mode the plugin showed this error
 * When seeking help with this issue, you may be asked for some of the following
   information:
   WordPress version 6.1.1Active theme: My Listing (version 2.9.10)
   Current plugin: AI Engine: ChatGPT, GPT-3 Content & Image Generator, Playground(
   Pro) (version 0.7.4)PHP version 8.0.27
 * Error Details
   =============An error of type E_PARSE was caused in line 252 of
   the file /dom31420/wp-content/plugins/ai-engine-pro/premium/forms.php. Error 
   message: Unclosed ‘{‘ on line 127
    -  This reply was modified 3 years, 4 months ago by [NBNTelevision](https://wordpress.org/support/users/nbntelevision/).
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-while-calling-openai/#post-16439098)
 * Hi [@nbntelevision](https://wordpress.org/support/users/nbntelevision/),
 * I don’t think it’s related to the issue above, but what is the error you got?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error while calling OpenAI’ is closed to new replies.

 * ![](https://ps.w.org/ai-engine/assets/icon-256x256.png?rev=3431928)
 * [AI Engine - The Chatbot, AI Framework & MCP for WordPress](https://wordpress.org/plugins/ai-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ai-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ai-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/ai-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ai-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ai-engine/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/error-while-calling-openai/#post-16439098)
 * Status: resolved