Title: Error while calling OpenAI
Last modified: March 2, 2023

---

# Error while calling OpenAI

 *  Resolved [leonlee888](https://wordpress.org/support/users/leonlee888/)
 * (@leonlee888)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/error-while-calling-openai-6/)
 * Error while calling OpenAI: cURL error 28: Failed to connect to api.openai.com
   port 443: Connection timed out

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

 *  Thread Starter [leonlee888](https://wordpress.org/support/users/leonlee888/)
 * (@leonlee888)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/error-while-calling-openai-6/#post-16521203)
 * It seems it is Chinese host problem. All Chinese host closed the port. So sad!!!
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/error-while-calling-openai-6/#post-16521252)
 * Oh wow! Yeah, indeed:
 * > China ordered local apps and websites to terminate services that allow OpenAI’s
   > ChatGPT service, cooling down the rally in Chinese artificial intelligence 
   > stocks.
 * From [Yahoo Finance](https://finance.yahoo.com/news/chinas-ban-openais-chatgpt-likely-135040587.html).
    -  This reply was modified 3 years, 3 months ago by [Jordy Meow](https://wordpress.org/support/users/tigroumeow/).
 *  Thread Starter [leonlee888](https://wordpress.org/support/users/leonlee888/)
 * (@leonlee888)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/error-while-calling-openai-6/#post-16521364)
 * Is it possbile add _Proxy_  in plug? Or other plug can help us?
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/error-while-calling-openai-6/#post-16521381)
 * My plugin uses the WordPress HTTP functions, so you can actually set up a proxy
   in your WordPress config, and that should work:
 *     ```wp-block-code
       define('WP_PROXY_HOST', '192.168.1.1');
       define('WP_PROXY_PORT', '3128');
       define('WP_PROXY_USERNAME', '');
       define('WP_PROXY_PASSWORD', '');
       define('WP_PROXY_BYPASS_HOSTS', 'localhost');
       ```
   
 * You’ll need to find a proxy, but that shouldn’t be too difficult.
 *  Thread Starter [leonlee888](https://wordpress.org/support/users/leonlee888/)
 * (@leonlee888)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/error-while-calling-openai-6/#post-16521497)
 * Thank you so much Jordy, Luckly, I have host in USA, I will move page to there
   first. And I will talk with my Chinese host tomorrow. It seems if we are do business,
   some company will be allow.
 * The last choose is use proxy.
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/error-while-calling-openai-6/#post-16521508)
 * Let me know how it goes with your host, I am curious 🙂 Or maybe they don’t want
   to talk about it publicly haha 😅
 *  Thread Starter [leonlee888](https://wordpress.org/support/users/leonlee888/)
 * (@leonlee888)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/error-while-calling-openai-6/#post-16521607)
 * Frank say, I can understand China do this way. AI is very important technology
   in the further. Today, API 3.5 is so fast and cheap.
 * Many country company can’t develop it any more, there is not profit and few people
   use it, test it, improve it.
 * But China good at this, it ban the port, so many Chinese have to use Chinese 
   AI. Although it should not good at all, But Chinese AI company can have some 
   money earn and develop chance~~~
 *  [deserteagle369](https://wordpress.org/support/users/deserteagle369/)
 * (@deserteagle369)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/error-while-calling-openai-6/#post-16584500)
 * Are those server type proxy work?
 * Shadowsocks
 * V2ray

Viewing 8 replies - 1 through 8 (of 8 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/)

## Tags

 * [proxy](https://wordpress.org/support/topic-tag/proxy/)

 * 8 replies
 * 3 participants
 * Last reply from: [deserteagle369](https://wordpress.org/support/users/deserteagle369/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/error-while-calling-openai-6/#post-16584500)
 * Status: resolved