flutter-geolocator icon indicating copy to clipboard operation
flutter-geolocator copied to clipboard

grpc failed

Open prasant10050 opened this issue 7 years ago • 6 comments

🐛 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.

prasant10050 avatar May 08 '19 16:05 prasant10050

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?

mvanbeusekom avatar May 22 '19 16:05 mvanbeusekom

duplicate of #223

mvanbeusekom avatar May 22 '19 16:05 mvanbeusekom

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..

ramioooz avatar May 27 '19 00:05 ramioooz

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.

StijnWoerkom avatar Oct 03 '19 12:10 StijnWoerkom

I restarted my Device and it worked fine

alnaughty avatar Nov 26 '19 06:11 alnaughty