Skip to content

Restrict number of IDs allowed in GET requests #178

@steveh

Description

@steveh

If you specify a large number of, for example, invoice IDs in xero_client.accounting_api.get_invoices you will hit either a 414 or 400 error due to the request URI being too long.

Specifically with 220 IDs we get a HTML 400 error from Akamai, with 210 IDs we get an XML 414 error from Xero, and with 200 IDs we get success.

I think this SDK should either immediately raise an error if you try and request more than say 100 IDs, or better, paginate the requests itself. Or better still, update the API to support these kind of bulk requests with a POST that would not have a URI length restriction.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions