MapboxGeocoding - Not a JSON Array - Error processing response
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 438
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
I've tried to get some results from MapboxGeocoding query but I'm getting this response:
**java.lang.IllegalStateException: Not a JSON Array: {"type":"Point","coordinates":[-95.36812,29.761636]}**
Gradle:
mapboxAnnotationPluginVersion = '0.5.0'
mapboxServicesVersion = '4.7.0' . (Also tried with 4.6.0 and 4.8.0)
mapboxVersion = '8.2.0'

#### Expected Behavior
#### Current Behavior
Getting : java.lang.IllegalStateException: Not a JSON Array: {"type":"Point","coordinates":[-95.36812,29.761636]}
#### Possible Solution
#### Steps to Reproduce
1. Hardcoded a string (valid address) on query parameter
2. Execute de code above in the screenshots
3. Get the response error parsing
#### Context (Environment)
#### Detailed Description
#### Possible Implementation
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 reproducing the MapboxGeocoding query with the reported dependency versions and inspect how the response containing a GeoJSON Point is parsed. Confirm the expected response shape and identify why this response is treated as an array; done means the query completes without the reported parsing exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100