-
-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GRPC failed error during various method calls #223
Comments
I think I'm facing a similar issue both on iOS and Android. In my application I'm requesting for a new placemark every time google maps camera moves, because I need to update the address displayed to the user. But after a few calls to |
I have same issue. It is working correcltly on emulators but not on real device. |
i have also same issue both on ios and android |
@prasant10050 I can give you a workaround with Javascript API calls. That's how I am using currently. |
please fix this asap because i have already integrated this package into my production app. |
Can you please add some more details about that workaround? |
Hello developers, I tried to change my ip address. I connect my phone to a vpn with USA ip address, and boom !! 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. |
i'm using Google DNS (8.8.8.8) and it seems to be working good (I live in Brazil) |
I also got same problem, kindly check. Thanks! |
This generally seems to be an issue when calling some web API. I used this library from inside my companies network on an emulator and it failed. I ran the same code with the laptop connected to some other wifi that doesn't go through my companies proxy and the result came in almost instantly. |
I also have issue with grpc failed. When turn off network and turn it on again then it almost always shows this error. Please fix this bug. |
This issue depends on the location of the user itself. If your country doesn't support the connection to the Google Play Services, you can't establish a connection. As @ramioooz says, a VPN could help to establish a connection with the Google Play Services. |
@StijnWoerkom As I have proposed throwing new exception type would be great. Catching not very specific PlatformException may introduce hidden bugs where developers may also catch other PlatformExceptions they would want to handle differently. Also, that exception message / or doccomments may also point developers that use this plugin to documentation link explaining issue with Google Play Services. |
@MartinHlavna Thank you for your reply. We are always open-minded about introducing new methods of handling PlatformException. If you have thoughts about this subject you are always welcome to contribute to the plugin. I am still working on the documentation to explaining this issue about Google Play Services. |
From @StijnWoerkom: |
This error does not happens allways on same conditions. Only occasionally. Sometimes error happens only once other times when network is again and try multiple times to get location again error happens multiple times untill i restart the app. |
Please share with us |
I did not receive an error when I changed or reinstalled the emulator or uninstall the app and try installing it again. |
Do we always have to use VPN? |
facing same issue. E/flutter (18757): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(ERROR_GEOCODING_COORDINATES, grpc failed, null) |
Facing the same issue , I have a collection in firestore and this collection has 6 documents , and trying to fetch lat, lon for each document and translate it to address , 4 of them works fine but 2 of them giving me this error , I don't know why ? |
I restarted my Device and it worked fine , same as #259 ticket solution provided by @alnaughty |
Since version 6.0.0 the geocoding features are no longer part of the geolocator plugin and moved to their own plugin which can be found here. |
🐛 Bug Report
Hello, we sometimes run to the following problem using Geolocator. Method that throws error varies. This time, we managed to get some information during placemarkFromCoordinates call.
Error object
Error type: PlatformException
Error message: PlatformException(ERROR_GEOCODING_COORDINATES, grpc failed, null)
Device info:
Internet: wifi
version.securityPatch: 2018-12-01
version.sdkInt: 27
version.release: 8.1.0
version.previewSdkInt: 0
version.incremental: G390FXXU3BRL3
version.codename: REL
version.baseOS:
board: universal7570
bootloader: G390FXXU3BRL3
brand: samsung
device: xcover4lte
display: M1AJQ.G390FXXU3BRL3
hardware: samsungexynos7570
host: SWDH7002
id: M1AJQ
manufacturer: samsung
model: SM-G390F
product: xcover4ltexx
supported32BitAbis: [armeabi-v7a, armeabi]
supported64BitAbis: []
supportedAbis: [armeabi-v7a, armeabi]
tags: release-keys
type: user
isPhysicalDevice: true
Permission info:
calendar: unknown
camera: granted
contacts: unknown
location: granted
microphone: granted
phone: granted
photos: granted
reminders: granted
sensors: unknown
sms: unknown
storage: granted
speech: granted
locationAlways: granted
locationWhenInUse: granted
mediaLibrary: granted
Memory info:
Total physical memory: 1839 MB
Free physical memory: 35 MB
Total virtual memory: 3375 MB
Free virtual memory: 1184 MB
StackTrace
Additional googling of error message showed this SO question pointing to two google bug reports (64418751, 64247769). Looks like there is problem with internal geolocation routines.
Expected behavior
Although this problem is caused by another problem in underlying structure, geolocator should not crash but should either
Great alternative would be optional possibility to use Geocoding API web service
Reproduction steps
There is no clear reproduction manual. Only way we can experience it is by daily use of plugin. Sometimes it happens sometimes not.
Configuration
Version: 3.0.1
Platform:
The text was updated successfully, but these errors were encountered: