• Register
0 votes
53 views

Problem :

I just launched my site and don't effectively do anything for a couple of seconds, and afterward the below indicated error message is produced in devTools. In the event that some procedure is done, the error doesn't emerge

Service Worker termination by a timeout timer was canceled because DevTools is attached

Please find below my System Configuration:

OS:- Windows 10 Pro
webpack:- 1.14.0
sw-precache-webpack-plugin:- 0.9.1
sw-precache:- 5.0.0

7.5k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

Ordinarily, idle service workers are forcefully slaughtered as an improvement, to keep code from running out of sight when it's not required. Chrome finds a way to recognize whether DevTools are open, and when it is, won't kill the service worker automatically. The supposition that will be that if an engineer is utilizing DevTools, they may be troubleshooting or generally looking at the service worker's behavior, and killing the service worker would baffle the designer. Expanding the lifetime of the service worker used to be done quietly, however as portrayed here, for as far back as hardly any adaptations of Chrome, the message

Service Worker termination by a timeout timer was canceled because DevTools is attached.

is logged to the console to tell the designer that the service worker would typically have been killed, however the job to kill it was dropped due to DevTools being open.

38.6k points

Related questions

0 votes
1 answer 196 views
196 views
Problem: I need submit method because on button click the other action is written and dont want to write code inside onclick function. Someone help.
asked May 3 salim1 60.6k points
0 votes
1 answer 8 views
8 views
Problem: It is written here that the push notifications will work even if the browser is closed, but I tested it and it is not the case. I receive push-notifications only if the browser is open (doesnt matter if the particular webpage is open or not).
asked Apr 13 ummesalma 29.1k points
0 votes
1 answer 241 views
241 views
Problem: please help me solver it... clear the cache of the scraper (new oncomplete event)
asked Apr 1 Ifra 43.4k points
0 votes
1 answer 11 views
11 views
Problem: What am I supposed to do here : Add website to home screen iphone chrome?
asked Jun 3 Rada Gracelynn 100k points
0 votes
1 answer 7 views
7 views
Problem: I have no idea how to solve this, someone help : Save website to iphone home screen chrome
asked Jun 2 Chi Omega 166k points
0 votes
1 answer 422 views
422 views
Problem: form submission canceled because the form is not connected
asked Feb 18 charles mathews 5.5k points
0 votes
1 answer 31 views
31 views
Problem: I'm using Puppeteer and Jest to run some front end tests. My tests look as follows: describe("Profile Tab Exists and Clickable: /settings/user", () => { test(`Assert that you can click the profile tab`, async () => { await page.waitForSelector( ... This is strange because: I specified the timeout to be 30000 Whether or not I get this error is seemingly very random Why is this happening?
asked Apr 24 Humaira ahmed 50.7k points
0 votes
1 answer 11 views
11 views
Problem: I'm looking for a solution : By default, what is the active tab type?
asked Jun 4 Rada Gracelynn 100k points
0 votes
1 answer 3 views
3 views
Probelm: Access denied by business data connectivity?
asked Jul 10 Mezbah 125k points
0 votes
1 answer 53 views
53 views
Problem: Is there somebody who can assist: You must pass a component to the function returned by connecting? instead received {}
asked Jun 13 Mezbah 125k points