Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2020-07-23 00:05:12

FEX1980
Member
Registered: 2020-04-08
Posts: 58

Chat Bot Rest Api Delay problems

Hello I am usign a Resta api in the bot, but when the Api's response take some time, the chat bot is not showing the response and only show the Trigger without any message, Could the  bot need more time? Do i need to change some parameter in settings or configuration?

Offline

#2 2020-07-23 03:50:34

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Chat Bot Rest Api Delay problems

Hi,

You can play around with those parameters
https://github.com/LiveHelperChat/liveh … #L221-L222

One is for general how long we should wait to establish connectin and other one is how long request can take.

Offline

#3 2020-07-23 11:04:27

FEX1980
Member
Registered: 2020-04-08
Posts: 58

Re: Chat Bot Rest Api Delay problems

Well about conecction I am not sure, but request is taking around 20 seconds. When the request takes more than 5 seconds has problems.

Offline

#4 2020-07-23 11:06:37

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: Chat Bot Rest Api Delay problems

Well that's really long... You should try to increase those variables I pasted... Ideally none of http should take so long. For that there is phpresque extension which can work with rest api itself... "Send Rest API Call in the background." option in the trigger.

Offline

#5 2020-07-23 11:15:17

FEX1980
Member
Registered: 2020-04-08
Posts: 58

Re: Chat Bot Rest Api Delay problems

Thank you worked perfectly  cool

Offline

Board footer