Skip to content

Google Maps JavaScript API not always loaded — possible AdBlocker interference? #414

@wrenzi

Description

@wrenzi

Hi there ,

We’re experiencing an intermittent issue where Sentry reports the following error:

Error
[react-places-autocomplete]: Google Maps JavaScript API library must be loaded. 
See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library

Image

In these cases, it appears that the Google Maps API script is not being loaded at all.

This behavior seems similar to what happens when marketing or analytics scripts are blocked by AdBlockers — some users’ browsers might be preventing the script from loading, which then triggers this error.

<script defer src="https://maps.googleapis.com/maps/api/js?key=${googleMapsId}&loading=async&libraries=places&language=en"></script>

Library version: 7.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions