T
Twenty2mo ago
John

400 Returned API Request when a 'Query read timeout'

When fetching many of a custom objects with depth = 1, a 400 is returned after 10 seconds when the request times out. Two questions: - Can I raise the timeout time? - Shouldn't this return a 408? This is using api.twenty.com, not a self-hosted instance
2 Replies
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
I can confirm I'm able to reproduce it on my local setup with about 20-30 requests in span of several minutes CC: @marie @martmull
Can I raise the timeout time?
No, it's set inside a code and not available to change by users
Shouldn't this return a 408?
Yes, it should 🤔
John
JohnOP2mo ago
Alright, I'll break larger queries into multiple depth-0 requests. For objects with many relations (>100), I’d would be nice to allow a higher timeout, even if it means temporarily lowering the allowed requests per minute when hitting the API with expensive queries

Did you find this page helpful?