I am attempting to generate a link that takes the user directly to the Google Calendar event selected.
Unchecked runtime.lastError: The message port closed before a response was received. Mixpanel-2-latest.min.js:14 Mixpanel error: “mixpanel” object not initialized.Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide. Unchecked runtime.lastError: The message port closed before a response was received. 0 Recommended Answers 1 Reply 156 Upvotes. Last edited 5/31/19. This message appears frequently in my console. From Google searches, I gather that the likely cause is an extension which uses chrome.runtime.sendMessage and then tries to use the response.
The link I generate is identical to the link that you arrive at when going through the Calendar interface, however, when the user selects the link it loads a blank white page with the Google Calendar header and Keep/Tasks sidebar. None of the actual content loads and I'm given the Unchecked runtime.lastError: The message port closed before a response was received.
error in console. Here's the below code, but as I said - the links are identical.
I've searched the error and found that other users suggested to disable all extensions, however, I am not running any.
1 Answer
I discovered that
generates several '
at the end of the calendar link. These equal signs were the cause of the break.
Therefore, editing the above code to the below solves this:
Not the answer you're looking for? Browse other questions tagged google-chromegoogle-apps-scriptgoogle-app-maker or ask your own question.
I've noticed that I get the following error on Chrome now (not yet sure whether it happens on other browsers):
Whenever I move the mouse, it logs this error in the console
: Unchecked runtime.lastError: The message port closed before a response was received.
This error accumulates whenever the mouse moves in the browser window. i.e. if the mouse is in the console area, it does not log the error, similarly, if the mouse is in the bookmarks bar, it does not log the error. The error is only logged if the mouse is anywhere on any web page. Check out the image below for the error.
Any idea what I can do about this?
I should note that when I opened Chrome's JavaScript Console today, it gave me the 'What's New' message.
Other info about my PC:
Google Chrome is up to date Version 71.0.3578.98 (Official Build) (64-bit)
Windows 10 Home (64-bit), also up to date
2 Answers
I believe the problem is with an installed extension not correctly interfacingwith the JavaScript part of the displayed page.
A similar problem iswell documented(although for Firefox), where it is explained with an example.
Try to use Chrome in Incognito mode, where extensions are disabled,to see if that's indeed the problem, and in that case disable extensions innormal mode via chrome://extensions/
until you find the one causing the problem.
In my case the problem was with the Foxit PDF creator extension in chrome. By disabling this extension (and reloading the page) the error stopped happening.