Skip to content

Handle the errors returned by the geocoder API #486

@prateek3255

Description

@prateek3255

Short description

The Geocoder.geocode method returns a promise, which is currently unhandled by the library, which results in unhandled errors.

Expected results

The geocoder errors should be appropriately propagated to the consumer via a prop.

Actual results

The library consumer is unaware of the error happening

Reproduction steps

Right now for some reason, the geocoder API errors out when the user enters a random text and presses enter, this error is also not propagated to the library consumer.

  1. Enter any random text in the geo suggest input
  2. Press enter
  3. View the unhandled error in the console

Additional Information

Image 2021-06-12 at 9 53 19 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions