-
Notifications
You must be signed in to change notification settings - Fork 656
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
location service: dial tcp: lookup geo.us-east-1.amazonaws.com: no such host #1506
Comments
Thanks for raising this issue @jaanauati, this appears to be a code-generation bug in our operation serializer. The host prefixes like |
I am facing the same problem, but can't get the workaround to work:
Panics with:
Credentials seems fine (aws cli location works) and I wrote a basic Python program that does the same using boto3 and it works fine. |
Hi., yes , i did face that same error w the describe-place operation, I made this fix:
#1500
the rest of the operation seem to work well for me.
El El jue, 25 nov. 2021 a la(s) 12:47, Karl Möller ***@***.***>
escribió:
… I am facing the same problem, but can't get the workaround to work:
cfg, err := config.LoadDefaultConfig(context.Background()) if err != nil {
panic(err) } configureUrlResolver := func(options *location.Options) {
options.EndpointResolver = location.EndpointResolverFromURL("
https://tracking.geo.eu-central-1.amazonaws.com") } locserv :=
location.NewFromConfig(cfg, configureUrlResolver) trackerName :=
"MyFirstTracker" out, err := locserv.DescribeTracker(context.TODO(),
&location.DescribeTrackerInput{ TrackerName: &trackerName, }) if err != nil
{ panic(err) }
Panics with:
operation error Location: DescribeTracker, https response error
StatusCode: 403, RequestID: <redacted>, api error
MissingAuthenticationTokenException: Missing Authentication Token
Credentials seems fine (aws cli location works) and I wrote a basic Python
program that does the same using boto3 and it works fine.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1506 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADJ3SPCQQ6LCICMKBRYRQ3UNZK7LANCNFSM5IMTGFMQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I have a root cause for this and have a fix that should make it into our next release. We appreciate this bug report, as this issue impacted a few other service clients. Additionally the root cause also uncovered another situation where idempotency token auto-fill behavior was not configured for some service clients. |
The missing SigV4 signing middleware is missing due to a modeling issue that we will work with the service team to get corrected. Until then I have put in a customization that will ensure that the signing middleware is attached to fix that issue. It looks like that issue in particular is limited to just 6 of the service's operations. |
@skmcgrail thank you!, regarding the signature issues please see #1500. |
|
Holding this issue open until our next tagged release, but the fix is now merged into main. |
Closing this issue, as the changes have been released. You can now |
|
Documentation
Describe the bug
Looks like the geo endpoints are wrongly configured to point to
geo.{region}.amazonws.com
, which leads to the following error:After spending some time poking with aws cli (using
--debug
flag) I found that the actual endpoint for this case should be:https://places.geo.us-east-1.amazonaws.com (or maps.geo.{region}.amazonaws.com for the case of maps).
https://github.com/aws/aws-sdk-go-v2/blob/main/service/location/internal/endpoints/endpoints.go#L130
Btw, In case that someone else runs into this same issue, I'm currently using the following workaround, which seems to work well:
Expected behavior
CreatePlaceIndexInput, DescribePlaceIndex, UpdatePlaceIndexInput, and DeletePlaceIndex functions should be able to create, describe, update and delete place index resources.
Current behavior
CreatePlaceIndexInput, DescribePlaceIndex, UpdatePlaceIndexInput, and DeletePlaceIndex functions return the following error:
Steps to Reproduce
Possible Solution
maybe including some additional endpoints or adding support for an additional param like:
"{resourceType}."geo.{region}.amazonaws.com"
https://github.com/aws/aws-sdk-go-v2/blob/main/service/location/internal/endpoints/endpoints.go#L130
AWS Go SDK version used
v1.11.0
Compiler and Version used
go version go1.16.3 darwin/amd64
Operating System and version
macos 11.4
The text was updated successfully, but these errors were encountered: