You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL;DR - some additional guidance on the two gotchas that I hit in the past couple days could be added to the docs. I can try to take a stab at some language if you think that makes sense
I've been using moto for a fair bit, but lately started using the server mode for integration tests a bit more deeply.
This reproduction case is run on Ubuntu 22.04. I installed moto like this:
pipx install moto[server]
I launched the server with moto_server in one terminal.
botocore.exceptions.ClientError: An error occurred (Unknown) when calling the CreateChangeSet operation: Unknown
An error occurred (Unknown) when calling the CreateChangeSet operation: Unknown
I initially noticed a NoSuchBucket which led me to #2915 where I learned about S3_IGNORE_SUBDOMAIN_BUCKETNAME. I restarted the server with that, which resolved NoSuchBucket error but it still failed.
After stepping thru some code and poking around at issues a bit, I retried the command with this instead: export AWS_ENDPOINT_URL=http://localhost:5000
That worked.
I originally used 127.0.0.1 instead of localhost as I watched https://www.youtube.com/watch?v=98SYTvNw1kw because I've been hit by localhost resolving to an ipv6 before and I figured I'd cut that out, but I can understand why dealing with the IP address can be challenging in some cases.
TL;DR - some additional guidance on the two gotchas that I hit in the past couple days could be added to the docs. I can try to take a stab at some language if you think that makes sense
I've been using moto for a fair bit, but lately started using the server mode for integration tests a bit more deeply.
This reproduction case is run on Ubuntu 22.04. I installed moto like this:
I launched the server with
moto_server
in one terminal.In another, I ran this with aws 2.15.27
using this yaml:
I got the following error:
I initially noticed a NoSuchBucket which led me to #2915 where I learned about
S3_IGNORE_SUBDOMAIN_BUCKETNAME
. I restarted the server with that, which resolved NoSuchBucket error but it still failed.After stepping thru some code and poking around at issues a bit, I retried the command with this instead:
export AWS_ENDPOINT_URL=http://localhost:5000
That worked.
I originally used 127.0.0.1 instead of localhost as I watched https://www.youtube.com/watch?v=98SYTvNw1kw because I've been hit by localhost resolving to an ipv6 before and I figured I'd cut that out, but I can understand why dealing with the IP address can be challenging in some cases.
Anyway, I did try to review the docs carefully as I hit this issue, and in looking back over them I found that there's nothing about
S3_IGNORE_SUBDOMAIN_BUCKETNAME
https://docs.getmoto.org/en/latest/search.html?q=S3_IGNORE_SUBDOMAIN_BUCKETNAME&check_keywords=yes&area=default#The docs over at https://docs.getmoto.org/en/latest/docs/server_mode.html do use
localhost:5000
but it might be worth pointing out that127.0.0.1:5000
is not an adequate replacement.The text was updated successfully, but these errors were encountered: