Hello guys, today i just faced out that my MailHog...
# docker
m
Hello guys, today i just faced out that my MailHog (mailcatcher container) does not work more properly.. The WebUi of MailHog is working but the websocket is always disconnected.. I've seen the following error in browser console:
WebSocket connection to wss://<my-domain>/api/v2/websocket failed: Unexpected response code: 400
Has anyone an idea?
h
What is docker/sdk version?
m
Hi Mike, i have last week on Friday updated on last master... I think is 1.15
p
Hi Giovanni, I'm not sure if it helps with your particular problem, but we often have issues with MailHog if there were too many emails. In that case we have to "delete all messages" - even if you don't see any messages in the UI. After that mailhog receives mails again.
h
If @purple-coat-90835’s advice does not help, it would be a bug. We changed FE architecture. However I wonder what would be wrong as the proxy pass rules are the same.
m
@high-pencil-62400 no. It does not help @purple-coat-90835 thank u for your tip
h
Copy code
Index: generator/src/templates/nginx/conf.d/gateway.default.conf.twig
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- generator/src/templates/nginx/conf.d/gateway.default.conf.twig	(revision ec4591269d568e3e27fad1ddfe72c908bd9d7884)
+++ generator/src/templates/nginx/conf.d/gateway.default.conf.twig	(date 1594158415741)
@@ -4,6 +4,11 @@
 proxy_http_version 1.1;
 server_names_hash_bucket_size 128;
 
+map $http_upgrade $connection_upgrade {
+    default upgrade;
+    ''      close;
+}
+
 map $cookie_XDEBUG_SESSION $xdebug_mode {
     ""      "";
     default "_xdebug";
Index: generator/src/templates/nginx/http/gateway/server.conf.twig
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- generator/src/templates/nginx/http/gateway/server.conf.twig	(revision ec4591269d568e3e27fad1ddfe72c908bd9d7884)
+++ generator/src/templates/nginx/http/gateway/server.conf.twig	(date 1594158501759)
@@ -11,11 +11,15 @@
     include /etc/nginx/vhost.d/ssl.default.conf;
 {% endif %}
 
+{% block locations %}
     location / {
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;
+        proxy_set_header Upgrade $http_upgrade;
+        proxy_set_header Connection $connection_upgrade;
         proxy_pass http://{% block upstream %}{{ upstream }}{% endblock upstream %};
     }
+{% endblock locations %}
 
     error_page 497 {{ desiredProtocol }}://$host{{ isPortCustom ? ':' ~ port : '' }}$request_uri;
 }
@mammoth-autumn-37948 Would this patch help, please, try.
I’ve checked and it works for me as well with this patch.
I will create a ticket and we will release the fix the next week. Thank you for reporting this.
m
Hi mike.. ok thanks. sorry but i cannot yesterday test and was planned for today.. Thank u very much!