# Unable to setup S3 bucket

**URL:** <https://meta.discourse.org/t/unable-to-setup-s3-bucket/346372>\
**Category:** Self-hosting\
**Tags:** uploads, s3\
**Created:** [January 9, 2025, 4:38pm UTC](https://meta.discourse.org/t/unable-to-setup-s3-bucket/346372 "2025-01-09T16:38:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![luigi7up](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/luigi7up/32/477213_2.png) [@luigi7up](https://meta.discourse.org/u/luigi7up)\
**Post date:** [January 9, 2025, 4:38pm UTC](https://meta.discourse.org/t/unable-to-setup-s3-bucket/346372/1 "2025-01-09T16:38:01Z")

</div>

Hi,

I’m trying to setup S3 uploads and it seems that the uploads are working correctly but the GET requests are failing for a weird reason. It seems that discourse is adding a “.cn” to the URI of the uploaded object

After uploading the image in my S3 bucket the public URL is:

`https://hobig...bucket-eu.s3.eu-central-1.amazonaws.com/original/1X/5e894113...48918.jpeg`

but when I inspect the browser my discourse forum is trying to load (notice the .cn)

`https://hobig...bucket-eu.s3.eu-central-1.amazonaws.com.cn/original/1X/5e894113...48918.jpeg`

Does anyone know why is this happening?

Here are my admin settings:

 ![The image shows a configuration settings page for uploading files to Amazon S3, including options for s3 access key id, secret access key, region, bucket, and endpoint. (Subtitulado por IA)](https://global.discourse-cdn.com/meta/original/4X/6/8/b/68bbff048cd5f185935030dc1f793890f8faec0a.jpeg)

---

_[View the full topic](https://meta.discourse.org/t/unable-to-setup-s3-bucket/346372)._
