r/QuickBooks • • 1d ago

QuickBooks Online Accounting API request timeout is changing to 45 seconds

We have just had the email from intuit explaining that their accounting api timeout is changing from 120 seconds to 45 seconds from December 15th.

The thing I dont understand is the time taken to process the request is dictated by their own servers. So If I make a request to generate a new invoice, or update a customer etc and their processing takes longer than 45 seconds then they will reject it with an error. How is that anybody's fault other than their own? If their servers are running slow, why do my requests get rejected for a lower timeout?

I feel this is very unfair of them. Does anybody feel the same or am I missing something here?

5 Upvotes

12 comments sorted by

3

u/clumsy_shaver 1d ago

Just a guess, but the most likely requests to be affected are large queries. Creations are usually not going to take that long unless there's something else going on. Someone querying with a page size of 500 invoices with line items included, though, might. So smaller page sizes on queries and you should be fine.

1

u/Mountain-Guitar2189 1d ago

If that is the case then why not restrict amount of batch invoices at once, or how many pages of results they return in a single request etc. Restricting users based on arbitrary server timeout seems crazy.

1

u/clumsy_shaver 1d ago

I'm the farthest thing from an Intuit defender, but It's actually pretty standard. Given an ever evolving API that can return different amounts of data based on the specific query/filters (e.g. 500 invoices with just IDs might be fine, but 500 invoices with line items included might not), it's way easier to limit read timeouts than individual limits for a combinatorial explosion of possible queries/filters. The primary concern for an API provider is reliability, which has more to do with how many open connections/requests they can service at once. Longer connections means lower possible throughput.

1

u/Mountain-Guitar2189 1d ago

The problem with doing it with timeout is it catches normal small requests out when their servers are running slow. So if someone else is running a big query that slows down my simple single invoice creation, my request is going to get rejected with an error when most other times it wouldnt. Making simple requests inconsistent like that is not something I have seen on any other API I have ever worked on, and Ive seen a lot!

4

u/austinbarrow 1d ago

You'll take the crappy software and like it, that's why.