-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Maps fails to Load internal libraries correctly #357
Comments
I'm not familiar with Angular Universal, but are you excluding this code path from ssr? |
@jpoehnelt yes definitely. These are definitely running on the browser. I am certain of that. I've tried looking for these errors online but couldn't find anything substantially relevant, which is probably why I'm stuck at the moment. |
If these are production logs/errors, there could be some other reasons for this failing: proxy servers, firewalls, etc. Not sure what to do if this cannot be reproduced. I didn't find any reported bugs similar to this. |
Happening the same using the loader on vue 2 application, this makes sense, i will try forcing refresh loader http call before maps API session token expires (authentication token from https://maps.googleapis.com/maps/api/js/AuthenticationService.Authenticate request) on mounted |
@carloscorti I'm not sure these are the same issues. I'll let @MohammedSiddiqui chime back in. For the expiration of the session, can you open a feature request, https://issuetracker.google.com/issues/new?component=188853&template=787814, to support refreshing. I didn't find anything in the public tracker for this and the internal issue hasn't been prioritized as such. Please post the link back here if you do. Thanks! Regarding your implementation, how are you resetting window.google and the @googlemaps/js-api-loader? |
I opened #361 for supporting session refresh. |
I'm not, just checking if expire time is reached and then call inject a different timestamp to force a new http call everz time the module is mounted |
Interesting ... @carloscorti I also have faced the NotLoadingAPIFromGoogleMapsError. |
Closing this as duplicate of #361. |
I have a very odd issue which I can't seem to pinpoint how the errors are occurring.
I have an Angular Universal (v 10.2.0) Project which is used to run an E-commerce website.
Hence the life cycle of the application is divided into 2 steps, first being rendered on the server and the second being rendered in the client's browser.
The flow is that we typically ask for the user to pinpoint his location on the App when the application bootstraps the first time on the user's browser, using a modal which renders Google Maps.
Hence I used this library to only initiate loading Google Maps on the browser's life cycle and only if the user either wants to change his location or visits us the first time.
I have abstracted this library and using Google Map's API behind my own Angular Service. And the modal only has a few css properties and the main div element which is used by Google Maps to render the Iframe within it.
I have also added sentry to my application which runs on the browser's life cycle for logging any errors which users might face.
Now the issue is I have a lot of errors on my Sentry Application which indicate that Google Maps has failed to load indirectly by telling us that internal libraries used by it, such as onion.js, or poly.js have failed.
I have tried reproducing this on my local machine, and on the production instance on multiple platforms and browsers using BrowserStack but could not reproduce it.
Any help would be highly appreciated.
Please be sure to include as much information as possible:
Environment details
Code example
Stack trace
A few of the errors shared in the above screenshot:
https://sentry.io/share/issue/b03f083c2d784d5aae89b3d7bdf34e5a/

https://sentry.io/share/issue/49a94e1001cc4726936a75ddc19b1829/
https://sentry.io/share/issue/be42dfdc544e4f38b8f692e998f006f5/
https://sentry.io/share/issue/713e5c1059b94106b8332ab70ecbed44/

Thanks!
The text was updated successfully, but these errors were encountered: