Reason for Uncaught Error: Attempting to use a disconnected port object
2,446 views
Skip to first unread message
marek chovanec
unread,
Mar 16, 2011, 9:55:26 AM3/16/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium-extensions
Hi,
I am getting this error in background page when responding to request
from content script.
Does anyone know what can be causing this error?
Full stack trace:
Uncaught Error: Attempting to use a disconnected port object chrome/
RendererExtensionBindings:147
chrome.Port.postMessage
chrome/RendererExtensionBindings:147
chromeHidden.Port.dispatchOnConnect.connectEvent chrome/
RendererExtensionBindings:89
myExtension.sideSearch.sendResponse.state background.js:1573
db.readTransaction.tx.executeSql.paramStr
background.js:1038
this only happens after a couple of hours of browsing
reloading extension is not helping - not that it would be a solution
after restarting chrome browser all gets back to normal for couple of
hours
content script can keep sending request to background but NO response
from background can be sent back
Is there any way I could catch this Uncaught error and reset the
listener?
I am using chrome.extension.onRequest.addListener for my
communication.