Skip to content

"Cannot get property 'setOptions' of undefined or null" is thrown if Google Maps API fails to load #399

@toolness

Description

@toolness

We've had these types of errors logged on Rollbar for a while, and the common element in them is that they all seem to log a Google Maps JS API error prior to the exception, such as:

Google Maps JavaScript API error: NotLoadingAPIFromGoogleMapsError\nhttps://developers.google.com/maps/documentation/javascript/error-messages#not-loading-api-from-google-maps-error

The actual maps API error logged varies; in fact, it's possible to reproduce this error by simply changing one's REACT_APP_STREETVIEW_API_KEY to an invalid value, in which case an InvalidKeyMapError is logged.

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