Skip to content

HAMUR_E5206: The wrangler config does not declare the R2 binding of the blob driver

The wrangler config does not declare the R2 binding of the blob driver. Error HAMUR_E5206 belongs to @hamur/blob (5201 – 5300).

Message

text
HAMUR_E5206 blob uses the cloudflare-r2 binding "<main>", which the app's wrangler config does not declare; add an r2_buckets entry with binding "<main>"

Cause

The blob driver is cloudflare-r2 and the wrangler config has no r2_buckets entry for its binding.

Fix

Add an r2_buckets entry with that binding.