mapbox / mapbox-gl-geocoder

Geocoder control for mapbox-gl-js using Mapbox Geocoding API
https://mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder/
ISC License
362 stars 181 forks source link

https4 no longer supported #501

Open karanprajapati-fl opened 1 year ago

karanprajapati-fl commented 1 year ago

My application was using below endpoint, which was working fine till yesterday. API: https4://api.mapbox.com/geocoding/v5/mapbox.places/{address}.json/

Suddenly this endpoint started failing and after replacing https4 with https it started working again. Was there any change recently made? If so, what is the best way to avoid such failures in future as a consumer of this API? Failures started at 12:17PM CDT for me.

Response from https4 endpoint: `<301,

301 Moved Permanently

301 Moved Permanently


CloudFront

,[Server:"CloudFront", Date:"Thu, 08 Jun 2023 16:08:27 GMT", Content-Type:"text/html", Content-Length:"167", Connection:"keep-alive", Location:"https://api.mapbox.com/geocoding/v5/mapbox.places/Schaumburg.json?access_token=pk.eyJ1IjoiZm9vdGxvY2tlciIsImEiOiJjaXU1dTM5ZWswaDU4MnRxdDhjZDBuOHViIn0.rWh2P749HNQCZv9FZVRqGg&country=US", X-Cache:"Redirect from cloudfront", Via:"1.1 d1620c382f35b296204e3926c8b4c3b6.cloudfront.net (CloudFront)", X-Amz-Cf-Pop:"ORD56-P6", X-Amz-Cf-Id:"Y9C1mUCPSloYQ_5B0945cDOd-iUuSwPcB2Eg80Qv4tBuvBjnOfz1KQ=="]>`