# Rebuild issue: \[Cannot set dual-stack in combination with a custom endpoint.\]

**URL:** <https://meta.discourse.org/t/rebuild-issue-cannot-set-dual-stack-in-combination-with-a-custom-endpoint/334902>\
**Category:** Bug\
**Tags:** s3, fixed\
**Created:** [November 7, 2024, 8:13am UTC](https://meta.discourse.org/t/rebuild-issue-cannot-set-dual-stack-in-combination-with-a-custom-endpoint/334902 "2024-11-07T08:13:14Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [November 8, 2024, 4:03pm UTC](https://meta.discourse.org/t/rebuild-issue-cannot-set-dual-stack-in-combination-with-a-custom-endpoint/334902/14 "2024-11-08T16:03:31Z")

</div>

> [@martin](#):
>
> I merged a fix for this

Thanks for the quick fix! I’m back in business. 🎉

> [@Falco](#):
>
> See prior art

Thanks for the lucid explanation, Rafael!

> [@martin](#):
>
> these S3 clones always slip my mind.

That’s because there’s a lot of stuff to keep in mind! And the spec tests, I think, would require those annoying `stub_request`s which I know I hate writing.

> [@martin](#):
>
> I think the fix here can just to be never use `dualstack` if `DISCOURSE_S3_ENDPOINT` has been set since they are incompatible

FWIW, that sounds right to me. And you could probably write tests for that that didnt’ require stubs for `stub_request`s.

---

_[View the full topic](https://meta.discourse.org/t/rebuild-issue-cannot-set-dual-stack-in-combination-with-a-custom-endpoint/334902)._
