Apr 6, 2023
2
1
3
I've just purchased this, and the thread title corrector and neither are getting any output (I have entered the API key).

When I try a reply, I get the following text "Sorry I couldn't contact the ChatGPT think tank"


Error log
Code:
BS\ChatGPTBots\Exception\ReplyException: ChatGPT response error: Empty response src\addons\BS\ChatGPTBots\Response.php:47
Generated by: z3r010 Apr 27, 2023 at 14:35
Stack trace
#0 src\addons\BS\ChatGPTReplyBot\Service\ThreadReply.php(44): BS\ChatGPTBots\Response::getReplyWithLogErrors(Object(Orhanerday\OpenAi\OpenAi), Array)
#1 src\addons\BS\ChatGPTReplyBot\XF\Pub\Controller\Concerns\ChatGPTQuotes.php(20): BS\ChatGPTReplyBot\Service\ThreadReply->getReplyOnPost(Object(XFES\XF\Entity\Post))
#2 src\addons\BS\ChatGPTReplyBot\XF\Pub\Controller\Post.php(20): BS\ChatGPTReplyBot\XF\Pub\Controller\Post->getChatGptReplyQuotes(Object(XFES\XF\Entity\Post))
#3 src\XF\Mvc\Dispatcher.php(352): BS\ChatGPTReplyBot\XF\Pub\Controller\Post->actionChatGptQuote(Object(XF\Mvc\ParameterBag))
#4 src\XF\Mvc\Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'ChatGptQuote', Object(XF\Mvc\RouteMatch), Object(SV\UserActivity\XF\Pub\Controller\Post), NULL)
#5 src\XF\Mvc\Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\UserActivity\XF\Pub\Controller\Post), NULL)
#6 src\XF\Mvc\Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src\XF\App.php(2483): XF\Mvc\Dispatcher->run()
#8 src\XF.php(524): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}

Code:
Request state
array(4) {
  ["url"] => string(28) "/posts/290873/chat-gpt-quote"
  ["referrer"] => string(62) "https://www.mysite.com/t/disable-onscreen-keyboard.14478/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(6) {
    ["quoteHtml"] => string(0) ""
    ["_xfRequestUri"] => string(35) "/t/disable-onscreen-keyboard.14478/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
    ["_chatGptResponse"] => string(0) ""
  }
 
Premium
Developer
Jun 11, 2020
555
443
63
I've just purchased this, and the thread title corrector and neither are getting any output (I have entered the API key).

When I try a reply, I get the following text "Sorry I couldn't contact the ChatGPT think tank"


Error log
Code:
BS\ChatGPTBots\Exception\ReplyException: ChatGPT response error: Empty response src\addons\BS\ChatGPTBots\Response.php:47
Generated by: z3r010 Apr 27, 2023 at 14:35
Stack trace
#0 src\addons\BS\ChatGPTReplyBot\Service\ThreadReply.php(44): BS\ChatGPTBots\Response::getReplyWithLogErrors(Object(Orhanerday\OpenAi\OpenAi), Array)
#1 src\addons\BS\ChatGPTReplyBot\XF\Pub\Controller\Concerns\ChatGPTQuotes.php(20): BS\ChatGPTReplyBot\Service\ThreadReply->getReplyOnPost(Object(XFES\XF\Entity\Post))
#2 src\addons\BS\ChatGPTReplyBot\XF\Pub\Controller\Post.php(20): BS\ChatGPTReplyBot\XF\Pub\Controller\Post->getChatGptReplyQuotes(Object(XFES\XF\Entity\Post))
#3 src\XF\Mvc\Dispatcher.php(352): BS\ChatGPTReplyBot\XF\Pub\Controller\Post->actionChatGptQuote(Object(XF\Mvc\ParameterBag))
#4 src\XF\Mvc\Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Post', 'ChatGptQuote', Object(XF\Mvc\RouteMatch), Object(SV\UserActivity\XF\Pub\Controller\Post), NULL)
#5 src\XF\Mvc\Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\UserActivity\XF\Pub\Controller\Post), NULL)
#6 src\XF\Mvc\Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#7 src\XF\App.php(2483): XF\Mvc\Dispatcher->run()
#8 src\XF.php(524): XF\App->run()
#9 index.php(20): XF::runApp('XF\\Pub\\App')
#10 {main}

Code:
Request state
array(4) {
  ["url"] => string(28) "/posts/290873/chat-gpt-quote"
  ["referrer"] => string(62) "https://www.mysite.com/t/disable-onscreen-keyboard.14478/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(6) {
    ["quoteHtml"] => string(0) ""
    ["_xfRequestUri"] => string(35) "/t/disable-onscreen-keyboard.14478/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
    ["_chatGptResponse"] => string(0) ""
  }
Hello,

I described your case in the FAQ: https://devsell.io/resources/021-chatgpt-framework.21/field?field=faq
Hope this helps :)

Regards,
021
 
Apr 6, 2023
2
1
3
Hello,

I described your case in the FAQ: https://devsell.io/resources/021-chatgpt-framework.21/field?field=faq
Hope this helps :)

Regards,
021
I tracked down the issue - on a Windows server curl needs a cert (I can't remember why, but I know that threadloom had the same issue) cacert.pem needs to be specified in the php.ini

Cacert download - https://curl.se/docs/caextract.html

The cert then needs to be copied to the file system and declared in the php.ini with a line like the following curl.cainfo = "c:\php\cacert.pem"
 
  • Like
Reactions: 021