If this is part of an upgrade, you need to add some WebSocket statements into the NGINX config.
That is documented here.
- https://docs.fusionpbx.com/en/latest/advanced/version_upgrade.html#upgrade-from-5-3-to-5-4
If you have a newer version, then update the source code and restart the service...