You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
V3 backport[#9048]: Validate input file for Vectorize inserts (#9093)
* fix: Validate input file for Vectorize inserts
* VS-398: Throw user errors instead of logging error and returning early for Vectorize commands
---------
Co-authored-by: Garvit Gupta <garvit@cloudflare.com>
`🚨 Vectorize currently limits upload batches to ${VECTORIZE_V1_MAX_BATCH_SIZE} records at a time.`
68
74
);
69
-
return;
70
75
}elseif(
71
76
!args.deprecatedV1&&
72
77
Number(args.batchSize)>VECTORIZE_MAX_BATCH_SIZE
73
78
){
74
-
logger.error(
75
-
`🚨 The global rate limit for the Cloudflare API is 1200 requests per five minutes. Vectorize V2 indexes currently limit upload batches to ${VECTORIZE_MAX_BATCH_SIZE} records at a time to stay within the service limits`
79
+
thrownewUserError(
80
+
`🚨 The global rate limit for the Cloudflare API is 1200 requests per five minutes. Vectorize V2 indexes currently limit upload batches to ${VECTORIZE_MAX_BATCH_SIZE} records at a time to stay within the service limits.`
`🚨 The global rate limit for the Cloudflare API is 1200 requests per five minutes. Vectorize indexes currently limit upload batches to ${VECTORIZE_MAX_BATCH_SIZE} records at a time to stay within the service limits`
60
+
thrownewUserError(
61
+
`🚨 The global rate limit for the Cloudflare API is 1200 requests per five minutes. Vectorize indexes currently limit upload batches to ${VECTORIZE_MAX_BATCH_SIZE} records at a time to stay within the service limits.`
0 commit comments