Unchecked Runtime.lasterror: The Message Port Closed Before A Response Was Received.
I am attempting to generate a link that takes the user directly to the Google Calendar event selected.
Apr 24, 2019 How to fix 'Unchecked runtime.lastError: The message port closed before a response was received' chrome issue? 0 How to fix “The message port closed before a response was received.” after window.location.reload in javascript. Chrome 72 and local WAS: Unchecked runtime.lastError: The message port closed before a response was received. If this is your first visit, be sure to check out the FAQ by clicking the link above.
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: