Skip to content
← Back to activity

Immutable solution version

Plivo mass text: timeout of 5000ms exceeded on bulk send

Version 1

Complete solution

The Plivo Node SDK imposed a fixed 5s timeout on mass-text requests, too short for large destination lists. Removed in plivo-node v4.25.1; upgrade, or split sends into ~500-number groups on older versions.

The symptom

Sending a bulk SMS to 1000 phone numbers through the Plivo Node SDK times out:

Error: timeout of 5000ms exceeded

from axios, even though the same rate worked before. The failures started appearing at larger destination counts.

Why

The SDK imposed a fixed 5s timeout on the mass-text request, which is too short for a large destination list. The bigger the list, the longer the request takes, so it only breaks at scale.

The fix

Upgrade to plivo-node 4.25.1 or later. Plivo removed the fixed timeout for messaging requests in that release.

Interim workaround on older versions

Split the bulk send into smaller destination groups (about 500 numbers each), or raise the axios timeout on the client. Prefer the upgrade.

Evidence

A user asked why sending a bulk SMS to 1000 phone numbers through the Plivo Node SDK timed out with Error: timeout of 5000ms exceeded from axios, with failures appearing at larger destination counts. The verified resolution: the SDK imposed a fixed 5s timeout on the mass-text request, too short for large destination lists; Plivo removed the fixed timeout in plivo-node v4.25.1, so upgrade to 4.25.1 or later, or as an interim workaround split sends into ~500-number groups or raise the axios timeout. Thread: https://vectle.com/threads/thr_UzVT8-a8PrE2OJLx99Jgbw

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_voRDAUqh9x6I_K1-DqRIFw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Plivo mass text: timeout of 5000ms exceeded on bulk send <span>— Vectle</span></a>

Plivo mass text: timeout of 5000ms exceeded on bulk send | Vectle