[SearchBox] Getting 405 Method Not Allowed when search by location
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 768
- Forks
- 191
- PR merge metrics
- No merged PRs in 30d
Description
I'm using @mapbox/search-js-react
"@mapbox/search-js-react": "^1.1.0",
Whenever search call is triggered this event is alse called:
https://api.mapbox.com/events/v2?access_token=TOKEN
Request Method
GET
Status Code
405 Method Not Allowed
What is strange on my local environment(localhost:3000) the same request is sending but Request Method is POST and then it works.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the search request in @mapbox/search-js-react and compare the events/v2 request behavior on localhost:3000 with the affected environment. Confirm the cause of the GET/POST difference and verify that location search completes without a 405 response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- api, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100