opensupplyhub / open-apparel-registry

An application for searching, matching, uploading factories.
MIT License
32 stars 13 forks source link

Google map initialization error raised by google-map-react #425

Open jwalgran opened 5 years ago

jwalgran commented 5 years ago

Overview

An unhandled Google map initialization error is raised by google-map-react in a currently unknown situation.

Expected Behavior

No unhandled exceptions are raised by google-map-react

Actual Behavior

An unhandled exceptions is raised by google-map-react

Steps to Reproduce

We only have Rollbar telemetry

Additional context

There is some discussion related to this error message in https://github.com/google-map-react/google-map-react/issues/526

View details in Rollbar: https://rollbar.com/OpenApparelRegistry/OpenApparelRegistry/items/68/


Error: google map initialization error (not loaded)
  File "../node_modules/google-map-react/lib/loaders/google_map_loader.js", line 75, in [anonymous]
          return typeof window.google === 'undefined' && reject(new Error('google map initialization ...
  File "../node_modules/scriptjs/dist/script.js", line 52, in m
            done && done();
  File "../node_modules/scriptjs/dist/script.js", line 92, in HTMLScriptElement.u.onload.u.onerror.u.(anonymous function)
          fn();
selvam-shyftlabs commented 3 years ago

This occurs many times for me. Is there any temporary solutions are there?

jwalgran commented 3 years ago

Does refreshing the page after you see this error resolve the issue or does it occur every time you visit the site?

selvam-shyftlabs commented 3 years ago

Not everytime. But the probability is 10%