Baseflow / flutter-geocoding

A Geocoding plugin for Flutter
https://baseflow.com
MIT License
136 stars 71 forks source link

[Question]: PlatformException(IO_ERROR, fsmr: DEADLINE_EXCEEDED) #229

Closed zhubarb closed 5 months ago

zhubarb commented 5 months ago

Please check the following before submitting a new issue.

Please select for which platform(s) you need help

Your question

This package used to work well in my Android app. However I recently started getting: "[log] Failed to get place name: PlatformException(IO_ERROR, fsmr: DEADLINE_EXCEEDED: deadline exceeded after 4.904684844s. Name resolution delay 0.070036719 seconds. [closed=[], open=[[buffered_nanos=4905356874, waiting_for_connection]]], null, null)". Not sure whether this is due to usage limits, the links provided (https://developer.android.com/reference/android/service/restrictions/package-summary) do not give information.

geocoding: ^3.0.0 minSdk 26 targetSdk 34 compileSdk 34

Version

3.0.0

mvanbeusekom commented 5 months ago

Hi @zhubarb,

The DEADLINE_EXCEEDED is an internal error of Android's Geocoder SDK (which is what the geocoding plugin uses to convert coordinates into address information and vice versa).

Android's Geocoder SDK internally makes HTTP requests to Googles services todo the lookup, the DEADLINE_EXCEEDED means that the Google services didn't respond in time.

Unfortunately the Geocoder SDK doesn't provide any control on timeout settings so there is not much we can do about the error. If you require more stable services, consider using a premium solution.