Skip to content

products.list throws error when ids array is larger than default limit value (10) #1464

Open
@rconjaerts

Description

@rconjaerts

Describe the bug

When you try to retrieve a list of products via the products.list() function, and you add an ids parameter whose array size is larger than the default limit value (10), Stripe will throw an StripeInvalidRequestError. The message and param of the error is the following:

message: 'You may only specify one of these parameters: ids, starting_after.',
param: 'ids',

To Reproduce

  1. Fetch list of products and add an array of ids larger than 10 elements

Expected behavior

The length of the array of ids shouldn't be constrained by the limit parameter

Code snippets

No response

OS

macOS

Node version

v16.13.2

Library version

stripe v9.6.0

API version

2020-08-27

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions