Mysqld port = mailhog port = ERR_INVALID_HTTP_RESPONSE

Bug Summary

mailhog has the same port as mysql

mysqld 4868 pinha 27u IPv4 0x7cf9c3081509 0t0 TCP 127.0.0.1:10030 (LISTEN)
mysqld 4868 pinha 29u IPv6 0x7cf9c311afd9 0t0 TCP [::1]:10030 (LISTEN)

when opening mailhog using https://localhost:10030/
This page isn’t working
ERR_INVALID_HTTP_RESPONSE

Steps to reproduce

Create a website until this happens!

Environment Info

  • MacOS Monterey 12.6.1
  • Local 6.5.1 and Local 6.5.2

Hello, I had same problem. Solved replacing the port at sites.json file.

First stop all site, then search for something like this in sites.json file:

{"mailhog":
{"name":"mailhog","version":"1.0.0","type":"lightning","ports":{"WEB":[10255],"SMTP":[10235]}},

And replaced:

"WEB":[10255]

with:

"WEB":[10213]

I don’t know if this solution is the best, but worked for me. Hope it helps.

1 Like