Timeout During Company Query?

I am currently trying to fetch a single company via API using
.../companies/c1e55189-28b8-4958-81ec-6bfb5cb5a713
.../companies/c1e55189-28b8-4958-81ec-6bfb5cb5a713
` But that call is repeatedly failing due to the automatic timeout after 10 seconds or so. Indepedently of what depth level I am using (tried 0 to 2). Is this a know bug? My server is logging this:
2025-09-09T15:41:05.905153359Z query failed: SELECT COUNT(1) AS "cnt" FROM "workspace_2tozdgqlnn5r7ixjvlwb99ldp"."company" "company" WHERE ( ("company"."id" = $1) ) AND ( "company"."deletedAt" IS NULL ) -- PARAMETERS: ["c1e55189-28b8-4958-81ec-6bfb5cb5a713"]
2025-09-09T15:41:05.905228178Z error: Error: Query read timeout
2025-09-09T15:41:05.905153359Z query failed: SELECT COUNT(1) AS "cnt" FROM "workspace_2tozdgqlnn5r7ixjvlwb99ldp"."company" "company" WHERE ( ("company"."id" = $1) ) AND ( "company"."deletedAt" IS NULL ) -- PARAMETERS: ["c1e55189-28b8-4958-81ec-6bfb5cb5a713"]
2025-09-09T15:41:05.905228178Z error: Error: Query read timeout
7 Replies
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
Depth 2 is known issue but 0 is new 🤔 Version 1.5?
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
That's the issue you can follow https://github.com/twentyhq/twenty/issues/12108
GitHub
API - can't fetch records via FindManyCompanies REST request with d...
Reproduced on dev seed Scenario: Log in Go to Settings > toggle Advanced > API Generate new API key Send "Find many companies" request with depth=2 Actual: There's an error in U...
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
Also, I've tried to reproduce it, it's broken when depth=2, otherwise it works fine
BigKahuna
BigKahunaOP3mo ago
Unfortunately, it doesn't for me. I'm on 1.5. Should I open a ticket then?
ɃØĦɆᵾS
ɃØĦɆᵾS3mo ago
Yes since it's regression, although I'm curious if you're the only person with this problem 🤔
BigKahuna
BigKahunaOP3mo ago
I retried yesterday night and it worked then. So maybe it was a temporary error. I'll keep an eye on it and open a ticket if it reoccurs.
Prastoin
Prastoin3mo ago
Can't remember if you're self hosting or not Could come from your infra available CPU where your instance is hosted

Did you find this page helpful?