Getting 500 when retrieving customers
Hello,
When we are trying to retrieve "all our customers" we are getting an internal server error.
We can get the specific users by filtering them like, https://cheddargetter.com/xml/customers/get/planCode/100GB
or like, https://cheddargetter.com/xml/customers/get/code/1234
The problem only occurs on, https://cheddargetter.com/xml/customers/get
Could you help us on this?
Thank you.
Discussions are closed to public comments.
If you need help with Cheddar please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Marc Guyer on 06 Nov, 2012 01:53 PM
Hi Kutay -- This is a known issue. You've got too many customers -- a good problem to have. So, to get a successful response, you'll need to filter the results. I might suggest doing it by date. Also, you might be interested to learn that there is an undocumented API method,
customers/list
that works just likecustomers/get
except it returns only current information (no invoice/transaction history). It's much more efficient thancustomers/get
and may be a better choice for your purposes. Thecustomers/list
method suffers from the same size limitations, however, so you still might have to do your own limiting.Long term, we will probably introduce an automatic "paging" of the response which will require multiple requests that include a
pageNumber
argument or the like.2 Posted by kutay on 06 Nov, 2012 03:34 PM
Thank you Marc, for the fast response. Filtering the results should work fine.
kutay closed this discussion on 06 Nov, 2012 03:34 PM.