Caddy: Unchecked runtime.lastError: The message port closed before a response was received.

Created on 30 Nov 2018  路  4Comments  路  Source: caddyserver/caddy

1. What version of Caddy are you using (caddy -version)?

0.11.0

2. What are you trying to do?

Serve static sites

3. What is your entire Caddyfile?

rob.hilgefort.me, www.rob.hilgefort.me, robhilgefort.com, www.robhilgefort.com {
  root /var/www/rjh-personal-page/public
  tls [email protected]
  internal /.git
  git  {
    repo [email protected]:rjhilgefort/rjh-personal-page.git
    branch master
    key /home/rjhilgefort/.ssh/id_rsa
    path ../
    then yarn install --offline
    then yarn run gatsby:build
    hook /caddyhook not-my-real-secret
  }
  gzip
  redir 301 {
    if {scheme} is http
    /  https://{host}{uri}
  }
}

4. How did you run Caddy (give the full command and describe the execution environment)?

/usr/local/bin/caddy -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp
VPS on Digital Ocean. Debian.

5. Please paste any relevant HTTP request(s) here.

https://robhilgefort.com

6. What did you expect to see?

no errors in the console

7. What did you see instead (give full error messages and/or log)?

I'm seeing an issue when it loads and while the page is running.

Unchecked runtime.lastError: The message port closed before a response was received.

image

8. How can someone who is starting from scratch reproduce the bug as minimally as possible?

I'm just running on a Digital Ocean VPS, serving up a static site using the command I pasted above. Please let me know what other info would be helpful.

Most helpful comment

I installed FireFox and tried- does seem to be some extension. Sorry for the issue.

All 4 comments

This is also causing problems in iOS safari that causes the page not to load.

Hmm, this does not look like a Caddy error. (Caddy errors would not be rendered client-side.)

This seems like a browser extension issue, or due to some JS loaded on your page. Nothing here points to an issue with Caddy.

https://stackoverflow.com/questions/43154963/promise-error-the-message-port-closed-before-a-reponse-was-received

I installed FireFox and tried- does seem to be some extension. Sorry for the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericmdantas picture ericmdantas  路  3Comments

aeroxy picture aeroxy  路  3Comments

PhilmacFLy picture PhilmacFLy  路  3Comments

billop picture billop  路  3Comments

lorddaedra picture lorddaedra  路  3Comments