WebSocket Connection Failure in Zammad Development Mode with HTTPS - Mobile App Loses Connection

Infos:

  • Used Zammad version: 6.4
  • Used Zammad installation type: source
  • Operating system: ubuntu20.0.4
  • Browser + version: google

Expected behavior:

  • The WebSocket connection should work properly and not show the error message “WebSocket connection to ‘wss://0.0.0.0:3000/cable’ failed.”

Actual behavior:

  • When running Zammad in development mode using dev:https, the WebSocket connection fails and the mobile app shows the error “The connection to the server was lost.”

Steps to reproduce the behavior:

  • The following error appears in the logs:
    WebSocket connection to 'wss://0.0.0.0:3000/cable' failed
    Ignoring message processed after the WebSocket was closed: "{\"command\":\"message\",\"identifier\":\"{\\\"channel\\\":\\\"GraphqlChannel\\\",\\\"channelId\\\":\\\"19487910784\\\"}\",\"data\":\"...\"}"

  • Run Zammad in development mode with dev:https using the following command:

bash

复制编辑

VITE_RUBY_HOST=0.0.0.0 VITE_RUBY_HTTPS=true RAILS_ENV=development foreman start -f Procfile.dev-https
  • Observe that the WebSocket connection to wss://0.0.0.0:3000/cable fails.
  • Check the mobile app, which shows the error “The connection to the server was lost.”
  • Review the logs to see the WebSocket errors.

It seems that this issue only occurs on the mobile version. I’m not sure where the configuration problem lies. I’m using the project launched with dev:https.