Skip to content

Non-Error promise rejection after map fails to load #350

@ledleds

Description

@ledleds

Hello!

We are currently using google-map-react in production which has this project as a dependency.

We've recently been seeing lots of errors in Sentry:

Event: Non-Error promise rejection captured with keys: currentTarget, isTrusted, target, type

With the object:

currentTarget: [object Null], 
isTrusted: [object Event], 
target: head > script#__googleMapsScriptId[type="text/javascript"], 
type: error

I saw that others had mentioned this library as a possible reason for this in this issue in Sentry: getsentry/sentry-javascript#2546

We see this error after 3 retries, after the third Failed to load Google Maps script, retrying in 24 ms. we see this error.

I've had to make a lot of assumptions so sorry if I'm wrong about this, I'm piecing what I can together from logs as I haven't been able to reproduce this myself. But I'm wondering if the error has to be handled differently in the loadErrorCallback function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions