Flutter-geolocator: grpc failed

Created on 8 May 2019  ·  6Comments  ·  Source: Baseflow/flutter-geolocator

🐛 Bug Report

I am getting lat and lng from current location , i am attaching my lat and lng but when we this lat lng to geolocator.placemarkFromCoordinates(latitude, longitude,); it will now get Address from lat lng it will throw error grpc failed. Some time it will get the Address most of the time it will shwo error.
I am not attching my current lat lng. X->some numeric value (from 1 to 9)

I/Geocoder(18539): getFromLocation --- latitude = 23.xxxxxxx, longitude = 86.xxxxxxx, maxResults = 1
I/Geocoder(18539): Geocoder getFromLocation --- mService = android.location.ILocationManager$Stub$Proxy@174f5f7, ex = grpc failed, return results = []
I/flutter (18539): PlatformException(ERROR_GEOCODING_COORDINATES, grpc failed, null)

Expected behavior

Reproduction steps

Configuration

Version: ^4.0.3

Platform: Both Platform

  • [X ] :iphone: iOS
  • [ X] :robot: Android

I am working with package on my production app .please fix this issue asap.

needs more info will-not-fix duplicate

Most helpful comment

I restarted my Device and it worked fine

All 6 comments

Hi @prasant10050, thank you for reporting this issue. I have tried reproducing this issue but failed (using lat: 23.556, long: 86.63061).

Could you try if version 5.0.0 of the Geolocator plugin solves this issue for you?

If you keep experiencing this issue, would it be possible for you to provide some example code or demo app we can use to reproduce the error message?

duplicate of #223

Hello developers,
I have been facing the same problem, but I think I do know what is happening here.
I was getting PlatformException : ERROR_GEOCODING_COORDINATES, grpc failed, null
every time I use geolocator.

I tried to change my ip address. I connect my phone to a vpn with USA ip address, and boom !!
geocoder now is working..

I think this has something to do with where you live... some google api services not available in some countries, so you need to connect through proxy or vpn to get them..

hope this help.
Thank you..

This issue will be handled further at issue #223 since it is the same issue. Please comment there if you have further questions or comments on this problem.

I restarted my Device and it worked fine

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sammius picture Sammius  ·  4Comments

seakmengc picture seakmengc  ·  3Comments

long1eu picture long1eu  ·  4Comments

jaumard picture jaumard  ·  3Comments

DineshKachhot picture DineshKachhot  ·  7Comments