question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

net::ERR_CONNECTION_CLOSED

See original GitHub issue

Issue description

AGM works well! but in some occasions the console shows the error. I tried opening an anonymous window but the problem persists. It must take some time for it to work again. It’s strange. I can’t find what it could be. I would like to handle the error, but I think it would be a bad patch and a terrible user experience.

I have not found solutions that help me in stackoverflow. Did anyone have any ideas?

Steps to reproduce and a minimal demo of the problem

I don’t have the steps to replicate the problem, it just stops working at any time.

What steps should we try in your demo to see the problem?

Current behavior 203 error de agm 204 error de agm

`

lazy-maps-api-loader.js:59 GET https://maps.googleapis.com/maps/api/js?v=3&callback=agmLazyMapsAPILoader&key=???-???-???&libraries=places net::ERR_CONNECTION_CLOSED push…/…/node_modules/@agm/core/services/maps-api-loader/lazy-maps-api-loader.js.LazyMapsAPILoader.load @ lazy-maps-api-loader.js:59 SearchPlacesGoogleMapsService @ search-places-google-maps.service.ts:23 createClass @ core.js:9296 createProviderInstance$1 @ core.js:9279 createProviderInstance @ core.js:9162 createViewNodes @ core.js:10386 createEmbeddedView @ core.js:10307 callWithDebugContext @ core.js:11344 debugCreateEmbeddedView @ core.js:10845 push…/…/node_modules/@angular/core/fesm5/core.js.TemplateRef.createEmbeddedView @ core.js:8894 push…/…/node_modules/@angular/core/fesm5/core.js.ViewContainerRef_.createEmbeddedView @ core.js:8760 push…/…/node_modules/@angular/common/fesm5/common.js.NgIf.updateView @ common.js:3375 set @ common.js:3343 updateProp @ core.js:9449 checkAndUpdateDirectiveInline @ core.js:9200 checkAndUpdateNodeInline @ core.js:10507 checkAndUpdateNode @ core.js:10469 debugCheckAndUpdateNode @ core.js:11102 debugCheckDirectivesFn @ core.js:11062 (anonymous) @ RenderMobCtrlMapComponent.html:1 debugUpdateDirectives @ core.js:11054 checkAndUpdateView @ core.js:10451 callViewAction @ core.js:10692 execComponentViewsAction @ core.js:10634 checkAndUpdateView @ core.js:10457 callViewAction @ core.js:10692 execEmbeddedViewsAction @ core.js:10655 checkAndUpdateView @ core.js:10452 callViewAction @ core.js:10692 execComponentViewsAction @ core.js:10634 checkAndUpdateView @ core.js:10457 callViewAction @ core.js:10692 execEmbeddedViewsAction @ core.js:10655 checkAndUpdateView @ core.js:10452 callViewAction @ core.js:10692 execEmbeddedViewsAction @ core.js:10655 checkAndUpdateView @ core.js:10452 callViewAction @ core.js:10692 execComponentViewsAction @ core.js:10634 checkAndUpdateView @ core.js:10457 callViewAction @ core.js:10692 execEmbeddedViewsAction @ core.js:10655 checkAndUpdateView @ core.js:10452 callViewAction @ core.js:10692 execComponentViewsAction @ core.js:10634 checkAndUpdateView @ core.js:10457 callViewAction @ core.js:10692 execEmbeddedViewsAction @ core.js:10655 checkAndUpdateView @ core.js:10452 callViewAction @ core.js:10692 execComponentViewsAction @ core.js:10634 checkAndUpdateView @ core.js:10457 callWithDebugContext @ core.js:11344 debugCheckAndUpdateView @ core.js:11022 push…/…/node_modules/@angular/core/fesm5/core.js.ViewRef.detectChanges @ core.js:8838 (anonymous) @ core.js:4571 push…/…/node_modules/@angular/core/fesm5/core.js.ApplicationRef.tick @ core.js:4571 (anonymous) @ core.js:4462 push…/…/node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:388 onInvoke @ core.js:3820 push…/…/node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:387 push…/…/node_modules/zone.js/dist/zone.js.Zone.run @ zone.js:138 push…/…/node_modules/@angular/core/fesm5/core.js.NgZone.run @ core.js:3734 next @ core.js:4462 schedulerFn @ core.js:3551 push…/…/node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:194 push…/…/node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:132 push…/…/node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:76 push…/…/node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:53 push…/…/node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47 push…/…/node_modules/@angular/core/fesm5/core.js.EventEmitter.emit @ core.js:3535 checkStable @ core.js:3789 onLeave @ core.js:3856 onInvokeTask @ core.js:3814 push…/…/node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask @ zone.js:420 push…/…/node_modules/zone.js/dist/zone.js.Zone.runTask @ zone.js:188 push…/…/node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask @ zone.js:496 invokeTask @ zone.js:1540 globalZoneAwareCallback @ zone.js:1566 load (async) customScheduleGlobal @ zone.js:1666 push…/…/node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:407 onScheduleTask @ zone.js:297 push…/…/node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:401 push…/…/node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ zone.js:232 push…/…/node_modules/zone.js/dist/zone.js.Zone.scheduleEventTask @ zone.js:258 (anonymous) @ zone.js:1831 (anonymous) @ http.js:1617 push…/…/node_modules/rxjs/_esm5/internal/Observable.js.Observable._trySubscribe @ Observable.js:43 push…/…/node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe @ Observable.js:29 push…/…/node_modules/rxjs/_esm5/internal/operators/finalize.js.FinallyOperator.call @ finalize.js:13 push…/…/node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe @ Observable.js:24 (anonymous) @ subscribeTo.js:21 subscribeToResult @ subscribeToResult.js:11 push…/…/node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._innerSub @ mergeMap.js:74 push…/…/node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._tryNext @ mergeMap.js:68 push…/…/node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._next @ mergeMap.js:51 push…/…/node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:53 (anonymous) @ scalar.js:5 push…/…/node_modules/rxjs/_esm5/internal/Observable.js.Observable._trySubscribe @ Observable.js:43 push…/…/node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe @ Observable.js:29 push…/…/node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapOperator.call @ mergeMap.js:29 push…/…/node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe @ Observable.js:24 push…/…/node_modules/rxjs/_esm5/internal/operators/filter.js.FilterOperator.call @ filter.js:15 push…/…/node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe @ Observable.js:24 push…/…/node_modules/rxjs/_esm5/internal/operators/map.js.MapOperator.call @ map.js:18 push…/…/node_modules/rxjs/_esm5/internal/Observable.js.Observable.subscribe @ Observable.js:24 push…/…/node_modules/rxjs/internal/operators/catchError.js.CatchOperator.call @ catchError.js:32 push…/…/node_modules/rxjs/esm5/internal/Observable.js.Observable.subscribe @ Observable.js:24 push…/src/app/mobile/mobile/mobile.component.ts.MobileComponent.getFlowByChannelId @ mobile.component.ts:111 push…/src/app/mobile/mobile/mobile.component.ts.MobileComponent.ngOnInit @ mobile.component.ts:51 checkAndUpdateDirectiveInline @ core.js:9243 checkAndUpdateNodeInline @ core.js:10507 checkAndUpdateNode @ core.js:10469 debugCheckAndUpdateNode @ core.js:11102 debugCheckDirectivesFn @ core.js:11062 (anonymous) @ MobileComponent_Host.ngfactory.js? [sm]:1 debugUpdateDirectives @ core.js:11054 checkAndUpdateView @ core.js:10451 callViewAction @ core.js:10692 execEmbeddedViewsAction @ core.js:10655 checkAndUpdateView @ core.js:10452 callViewAction @ core.js:10692 execComponentViewsAction @ core.js:10634 checkAndUpdateView @ core.js:10457 callWithDebugContext @ core.js:11344 debugCheckAndUpdateView @ core.js:11022 push…/…/node_modules/@angular/core/fesm5/core.js.ViewRef.detectChanges @ core.js:8838 (anonymous) @ core.js:4571 push…/…/node_modules/@angular/core/fesm5/core.js.ApplicationRef.tick @ core.js:4571 (anonymous) @ core.js:4462 push…/…/node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:388 onInvoke @ core.js:3820 push…/…/node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke @ zone.js:387 push…/…/node_modules/zone.js/dist/zone.js.Zone.run @ zone.js:138 push…/…/node_modules/@angular/core/fesm5/core.js.NgZone.run @ core.js:3734 next @ core.js:4462 schedulerFn @ core.js:3551 push…/…/node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub @ Subscriber.js:194 push…/…/node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.next @ Subscriber.js:132 push…/…/node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber._next @ Subscriber.js:76 push…/…/node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next @ Subscriber.js:53 push…/…/node_modules/rxjs/_esm5/internal/Subject.js.Subject.next @ Subject.js:47 push…/…/node_modules/@angular/core/fesm5/core.js.EventEmitter.emit @ core.js:3535 checkStable @ core.js:3789 onHasTask @ core.js:3833 push…/…/node_modules/zone.js/dist/zone.js.ZoneDelegate.hasTask @ zone.js:441 push…/…/node_modules/zone.js/dist/zone.js.ZoneDelegate._updateTaskCount @ zone.js:461 push…/…/node_modules/zone.js/dist/zone.js.Zone._updateTaskCount @ zone.js:285 push…/…/node_modules/zone.js/dist/zone.js.Zone.runTask @ zone.js:205 drainMicroTaskQueue @ zone.js:595 Promise.then (async) scheduleMicroTask @ zone.js:578 push…/…/node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:410 onScheduleTask @ zone.js:297 push…/…/node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ zone.js:401 push…/…/node_modules/zone.js/dist/zone.js.Zone.scheduleTask @ zone.js:232 push…/…/node_modules/zone.js/dist/zone.js.Zone.scheduleMicroTask @ zone.js:252 scheduleResolveOrReject @ zone.js:862 resolvePromise @ zone.js:808 (anonymous) @ zone.js:724 webpackJsonpCallback @ bootstrap:25 (anonymous) @ default~mobile-mobile-module~web-web-module.js:1 Show 120 more frames 4core.js:1673 ERROR Error: Uncaught (in promise): Event: {“isTrusted”:true} at resolvePromise (zone.js:814) at resolvePromise (zone.js:771) at zone.js:873 at ZoneDelegate.push…/…/node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421) at Object.onInvokeTask (core.js:3811) at ZoneDelegate.push…/…/node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:420) at Zone.push…/…/node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:188) at drainMicroTaskQueue (zone.js:595) at ZoneTask.push…/…/node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask [as invoke] (zone.js:500) at invokeTask (zone.js:1540)

`

Expected/desired behavior

angular2 & angular-google-maps version

Other information

Ussing: Angular 5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
ha-akeliuscommented, Dec 5, 2019

we are having same issue Uncaught (in promise): Event: {"isTrusted":true} , we are using https://sentry.io/ to track client-side error,

it happens almost 3 times every day, on the IOS platform mostly safari browser.

this issue depending on https://stackoverflow.com/a/57186975 because clients were blocking the Google Maps Services

so can we catch on load error via AgmCoreModule.forRoot(lazyMapsAPILoaderConfig?: LazyMapsAPILoaderConfigLiteral)

ex:

AgmCoreModule.forRoot({
onLoadError: ....
}),
1reaction
ghostcommented, Aug 12, 2019

could it be that you have a bad connection?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Fix "ERR_CONNECTION_CLOSED" in Chrome (13 ...
How To Fix “ERR_CONNECTION_CLOSED” in Google Chrome (13 Solutions) · 1. Check Your Internet Connection · 2. Reset Your Network Settings · 3....
Read more >
How to Fix ERR Connection Closed Error in Chrome Browser
ERR Connection Closed Error in Chrome Browser · 1. Clear Browsing Data · 2. Disable Proxy Server · 3. Flush DNS and Reset...
Read more >
ERR_CONNECTION_CLOSED: How to fix the connection error
Solution 1: Check internet connection and restart router if necessary · Solution 2: Reset network settings · Solution 3: Disable proxy server and ......
Read more >
How to Fix Error Connection Closed Error in Google Chrome?
Check your internet connection · Check the firewall connection · Disable proxy server and VPN · Reset TCP/IP settings · Flush DNS ·...
Read more >
FIX: ERR_CONNECTION_CLOSED in Google Chrome (Solved)
The error "ERR_CONNECTION_CLOSED" in Google Chrome, means that your browser cannot establish a connection with the website you try to reach, because your ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found