File tree Expand file tree Collapse file tree
data-access-layer/src/activities Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -462,8 +462,8 @@ export function buildActivitiesParams(arg: ExtendedArgs): TBParams {
462462 // segments as Array(String) — cap at 500 to avoid Tinybird 400 on large project groups.
463463 // When an entity filter (memberId/orgId) is present this slice is a preview; users can
464464 // drill into a specific segment for full results.
465- const MAX_SEGMENTS = 6000
466- const allSegments = toStringArray ( arg . segmentIds )
465+ const MAX_SEGMENTS = 5000
466+ const allSegments = toStringArray ( arg . segmentIds ) ?? [ ]
467467 if ( allSegments . length > MAX_SEGMENTS ) {
468468 log . warn (
469469 { totalSegments : allSegments . length , cappedAt : MAX_SEGMENTS } ,
Original file line number Diff line number Diff line change @@ -199,6 +199,12 @@ export class TinybirdClient {
199199 }
200200
201201 // If it's not a retryable error or we've exhausted retries, throw the error
202+ if ( statusCode ) {
203+ log . error (
204+ { statusCode, responseBody : error . response ?. data } ,
205+ 'Tinybird non-retriable error' ,
206+ )
207+ }
202208 throw error
203209 }
204210 }
You can’t perform that action at this time.
0 commit comments