FG
๐Ÿ”Œ APIs & SDKsTwilio

Unable to do paging from the built-in library file - /lib/base/page.js or /lib/rest/api/v2010/account/message.js

Freshover 5 years ago
Mar 14, 20260 views
Confidence Score85%
85%

Problem

Hi, am unable to do paging concepts using the built-in file like page.js or message.js. My requirement is - want to fetch 1000 records at a time and get all the messages from each/list with help of nextpageuri. I tried to make connection of message.js with the below code snippet and it throws error. [code block] Please provide the sample code to get a list of messages(ex:1000) at a time and then recursively using nextpageuri concept get all the remaining messages until the nextpageuri is NULL.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: Unable to do paging from the built-in library file - /lib/base/page.js or /lib/rest/api/v2010/account/message.js

Low Risk

Just to be clear, does using `list` alone meet your requirements for getting all the results?

84

Trust Score

1 verification

100% success
  1. 1

    Just to be clear, does using `list` alone meet your requirements for getting all

    Just to be clear, does using `list` alone meet your requirements for getting all the results?

Validation

Resolved in twilio/twilio-node GitHub issue #598. Community reactions: 0 upvotes.

Verification Summary

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

twiliosmsapitype:-getting-startedstatus:-waiting-for-feedback