Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(worker): auto-disable blob exports when the S3 bucket is in another region (#18969)

Niklas Semmlerf73cd5938f28
diff --git a/worker/src/features/integrations/customerFaultClassification.test.ts b/worker/src/features/integrations/customerFaultClassification.test.ts
index 5586b72008..c9c137d8e0 100644
--- a/worker/src/features/integrations/customerFaultClassification.test.ts
+++ b/worker/src/features/integrations/customerFaultClassification.test.ts
@@ -75,6 +75,7 @@ describe("isCustomerFaultError", () => {
["AuthorizationHeaderMalformed", 400],
["NoSuchBucket", 404],
["InvalidBucketName", 400],
+ ["PermanentRedirect", 301],
])("classifies %s as customer_fault", (code, status) => {
expect(isCustomerFaultError(wrapped(s3Error(code, status)))).toBe(true);
});
@@ -346,6 +347,7 @@ describe("classifyCustomerFault — disable reason buckets", () => {
it.each([
["NoSuchBucket", 404],
["InvalidBucketName", 400],
+ ["PermanentRedirect", 301],
["ContainerNotFound", 404],
["InvalidResourceName", 400],
] as const)("maps %s to bucket_or_container", (code, status) => {
diff --git a/worker/src/features/integrations/customerFaultClassification.ts b/worker/src/features/integrations/customerFaultClassification.ts
index d0983d71de..fe6c5821e9 100644
--- a/worker/src/features/integrations/customerFaultClassification.ts
+++ b/worker/src/features/integrations/customerFaultClassification.ts
@@ -43,6 +43,8 @@ const BUCKET_FAULT_CODES = new Set<string>([
// S3 — bucket & path
"NoSuchBucket",
"InvalidBucketName",
+ // S3 — bucket lives in a different region than the configured region/endpoint
+ "PermanentRedirect",
// Azure — container & path
"ContainerNotFound",
"InvalidResourceName",