-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnknownHostException: localhost.localstack.cloud on mac os #68
Comments
Thanks for reporting @vicmosin . This hostname should be resolvable, but I guess there's a few ISPs that may be blocking it from getting resolved. Would it be an option for you to add an entry to the Alternatively, you should be able to customize the API endpoint address by setting this environment variable in your LocalStack container: |
@whummer I finally had a time to check proposed solution..
|
Me too. The endpoints are entered in a strange combination. I am currently using mac os, and when connecting localstack and application through docker-compose, it is assembled as a strange endpoint. The bucket name and the container name are concatenated with ., and the endpoint is passed, resulting in an UnknownHostException. Especially when creating a bucket by code, an exception is thrown. code >> Caused by: com.amazonaws.SdkClientException: Unable to execute HTTP request: ${bucket_name}.${containerName}
Caused by: java.net.UnknownHostException: ${bucket_name}.${containerName} |
I am using
0.2.15
version of the utils. The docker starts up without any issue, but the s3 client can not resolve the url.. here is the config I have:The text was updated successfully, but these errors were encountered: