Back to All

Delay in getting HTTP response at application end while calling API

Hi,
I'm integrating Snatchbot in my application with Other/Api channel and I'm facing two major issues

  1. According to the setting when am setting value of session expiry under configure setting to 180 (default) it delays the response at application end that is am getting JSON after 180 sec. And when I decrease the value of session expiry upto 2 or 5 sec. It works fast but prints the same response again and again instead of getting proper reply.

  2. After passing user_id and message to API- "https://snatchbot.me/channel/api/id18071/app7926512121961677/apsAloEKnuliUU5ZhJF1aZwtHp3MHUAi0i3" and In JSON I'm getting a single message that is welcome text but when I am trying it on Test bot it is working properly with all possible combinations.

Why this is happening? How can I be able to fix both the issues?