mapbox / mapbox/mapbox-gl-geocoder

https4 no longer supported

Open
#501 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged needs information
Dominant language
JavaScript
Stars
388
Forks
181
PR merge metrics
No merged PRs in 30d

Description

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=="]>`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported https4 endpoint and compare its response with the working https endpoint, using the CloudFront redirect details in the issue. Check whether this repository contains code or documentation defining the endpoint; done would require a clearly scoped fix or documented guidance for avoiding the reported failure.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.