mapbox / mapbox/MapboxGeocoder.swift

Error Domain=NSCocoaErrorDomain Code=4864 "Expected to decode Array<Any> but found a dictionary instead."

Open
#207 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
133
Forks
46
PR merge metrics
No merged PRs in 30d

Description

[self.geocoder geocodeWithOptions:options completionHandler:^(NSArray<MBGeocodedPlacemark *> * _Nullable placemarks, NSString * _Nullable attribution, NSError * _Nullable error) {

}]

The error is :
Error Domain=NSCocoaErrorDomain Code=4864 "Expected to decode Array but found a dictionary instead."

Who can help me?

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 at the geocodeWithOptions call shown in the issue and trace the response-decoding path for the geocoder request. Compare the response shape that decoding expects with the dictionary reported in the error; done means the reported response is handled correctly or the incompatibility is documented with a reproducible explanation.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
api, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.