Skip to content

Outdated code example for R2 with aws-sdk-go-v2 #12043

@urgn

Description

@urgn

Which Cloudflare product does this pertain to?

R2

Existing documentation URL(s)

The code from this example does not really work.
It produces an error:

operation error S3: ListObjectsV2, resolve auth scheme: resolve endpoint: endpoint rule error, Invalid region: region was not a valid DNS name.

What changes are you suggesting?

Update the code listing with working example.

Additional information

No response

Metadata

Metadata

Labels

DevRelTasks that need support from developer relations.bad-examplecontent:editRequest for content editsdocumentationDocumentation editsproduct:r2R2 object storage: https://developers.cloudflare.com/r2size/s

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions