Service Worker Registration failed error

802 views
Skip to first unread message

Sony Mathew

unread,
Jan 30, 2017, 12:54:26 AM1/30/17
to service-worker-discuss
In Chrome 55 in one of my devices(Mac Air), I'm getting the following error while registering worker.

DOMException: Registration failed - could not retrieve the public key

But it works fine when in Chrome 55 in other devices. I have seen errors because of problems with manifest and scope. But this is the first time I'm coming across this particular error. Can anybody please throw some light upon why this is happening or in what situation it is happening.?

Matt

unread,
Jan 30, 2017, 1:02:43 AM1/30/17
to service-worker-discuss, Peter Beverloo
This error has to do with encryption for push notifications:

peter@ may have advice on how to debug this. Does it happen all the time with this device? Could the key be stored somewhere on the device that Chrome can no longer read?

Peter Beverloo

unread,
Jan 31, 2017, 2:34:57 PM1/31/17
to Matt, service-worker-discuss, John Mellor
This is the sort of error that fits in the "this should never happen" category. The only situation in which this would happen is when the on-disk GCM Key Store database got corrupted and, for some reason, cannot be recovered.

+johnme who has been investigating these issues.

Thanks,
Peter

Sony Mathew

unread,
Jan 31, 2017, 7:31:56 PM1/31/17
to service-worker-discuss
Hey Matt & Peter,

Thank you for your support and I appreciate your insights on this topic. Till yesterday I could reproduce the error on the device. But I'm sad (and glad) to tell that if this issue interested you, after I restarted the laptop, the error is gone. Now its working fine as in other devices.

Thanks for all your help.

Regards,
Sony
Reply all
Reply to author
Forward
0 new messages