Hi Adrian,
That's a good catch! While the general guidance or common practice for Genesys Cloud Platform API timeouts is often suggested to be around 12-15 seconds, the SDK itself does indeed default to 16 seconds. You are correct, this is also configured in the AbstractHttpClient constructor within the SDK's source code. I agree that the SDK documentation should be updated to explicitly state the 16-second default to avoid any confusion.
Additionally, as mentioned by @Tim Smith on the old Developer Forum: "The default timeout in the JavaScript SDK is 16 seconds. The server-side timeout is up to 15 seconds. The logic here is that the server should send its own timeout response before the SDK times out. This way, the client (SDK) receives a timeout message from the server instead of the connection simply being dropped abruptly."
Tim also added that this timeout duration can optionally be configured on the ApiClient instance.
------------------------------
Orhun Sahin
Software Development Engineer
------------------------------
Original Message:
Sent: 04-22-2025 11:14
From: Adrián Santamaria
Subject: Possible bug in Javascript SDK code documentation
Hello!
I've noticed this in the Javascript SDK code. Isn't it a bug? The JSDoc says that the default value is 60000, but it is set at 16000.
#PlatformSDK
------------------------------
Adrián Santamaria
------------------------------