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
When region is missing from either the createMap factory or from the Amplify configuration (geo.AmazonLocationService.region), URLs like the following are generated:
The requests predictably fail, but the console doesn't really provide an indication why (esp. if one doesn't notice the undefined). An improved developer experience would involve noting this and logging a more helpful message (along the lines of "Please provide provide a region "), potentially by throwing an exception.
The text was updated successfully, but these errors were encountered:
I am also experiencing the same issue and found that adding the region explicitly as a param of the createMap function call helps to work around. The current readme of master gives a working example.
Details
I can reproduce with @aws-amplify/[email protected] and @aws-amplify/[email protected] (didn't test older versions though).
An interesting observation is that the browser's console prints out a CORS error and one must pay attention to the logged out CORS Request URL. It follows the pattern https://maps.geo.**undefined**.amazonaws.com/maps as pointed out by @mojodna.
Next steps
I expect @thaddmt will facilitate the next steps. Gladly this issue can be worked-around in the meantime.
(Full disclosure: I am an affected user of the issue and not part of the maintaining team)
When
region
is missing from either thecreateMap
factory or from the Amplify configuration (geo.AmazonLocationService.region
), URLs like the following are generated:https://maps.geo.undefined.amazonaws.com/maps/v0/maps/map30307599-dev/style-descriptor
The requests predictably fail, but the console doesn't really provide an indication why (esp. if one doesn't notice the
undefined
). An improved developer experience would involve noting this and logging a more helpful message (along the lines of "Please provide provide a region "), potentially by throwing an exception.The text was updated successfully, but these errors were encountered: