Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoPagingEach example not working for faxes #169

Open
mathsnunes opened this issue Apr 8, 2024 · 0 comments
Open

autoPagingEach example not working for faxes #169

mathsnunes opened this issue Apr 8, 2024 · 0 comments

Comments

@mathsnunes
Copy link

mathsnunes commented Apr 8, 2024

Here is documentation that I'm trying to follow with:

await telnyx .getClient() .faxes.list() .autoPagingEach(async (fax) => { console.log(fax); });

However, when it gets to the autoPagingEach, I get the following error:

{ "errorMessage": "Unexpected: Telnyx API response does not have a well-formed dataarray.", "errorType": "Error", "stackTrace": [ "Error: Unexpected: Telnyx API response does not have a well-formeddata array.", " at iterate (..../fax-scheduler.js:243147:17)", " at process.processTicksAndRejections (node:internal/process/task_queues:95:5)" ] }

Node version is: v20.11.0

It seems from the documentation, but clearly, something is not happy.

Please advise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant