question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible Unhandled Promise Rejection: Geocoder is not running

See original GitHub issue

Environment

<Expo CLI 2.11.9 environment info: System: OS: Windows 10 Binaries: npm: 6.5.0 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 3.3.0.0 AI-182.5107.16.33.5314842>

SDK 32

My target is Android and IOS. I am experiencing this error on my android device, i haven’t yet tested it on the iphone.

Steps to Reproduce

  1. Cmd: expo init geocodebug
  2. Choose blank template
  3. Name: geocodedebug Slug: geocodebug
  4. Cd geocodebug
  5. Cmd: npm install --save react-navigation
  6. Copy files from the Github repo and overwrite in ‘geocodedebug’ folder
  7. Npm start
  8. Open app in expo
  9. Click on the ‘Open shared link’ button.

Expected Behavior

I expected the full output (latitude,longitue) of the translated address from the geocode process in the console.

Actual Behavior

No output on the console from the geocoder function. Instead error:

`[Unhandled promise rejection: Error: Geocoder is not running.]

  • node_modules\react-native\Libraries\BatchedBridge\NativeModules.js:146:41 in createErrorFromErrorData
  • node_modules\react-native\Libraries\BatchedBridge\NativeModules.js:95:55 in <unknown>
  • … 5 more stack frames from framework internals`

Reproducible Demo

Github repo

Download these files and place and replace them in your new project. The issue seems to come up only when I use the Linking.addEventListener('url', this._handleRedirect); and then continue to another page to then convert the address to coördinates.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cruzachcommented, Mar 19, 2019

I’m running the same version of the Expo CLI as you, only major difference is npm version (I’m using 6.9.0).

Was there anything significantly different about the environment of the computer you were able to get it to work correctly on?

0reactions
stale[bot]commented, Mar 10, 2020

It’s been a while since we’ve had any activity on this issue, and seeing as it needs more info before we can properly address it, we will be closing it in one month. If you’ve found a fix, please share it! Otherwise, please provide the info we asked for, especially a reproducible example. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix [Unhandled promise rejection: Error - Stack Overflow
I've come up with a new solution if you wanted to use getCurrentPosition, not the last known position. You can use this code...
Read more >
How to use Geolocation, Geocoding and Reverse ... - Enappd
In this post we will learn How to use Geolocation, Geocoding and Reverse Geocoding in React Native Apps.
Read more >
React Native Auth0 Possible Unhandled Promise Rejection
Possible Unhandled Promise Rejection (id: 1): TypeError: undefined is not an object (evaluating '_yield$getCredentials.accessToken').
Read more >
Location - Expo Documentation
A promise which fulfills with an object of type LocationObject or null if it's not available or doesn't match given requirements such as...
Read more >
Upgrading Your Maps JavaScript API Application from V2 to V3
The Maps JavaScript API v2 is no longer available as of May 26, 2021. As a result, your site's v2 maps will stop...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found