From c7da412b3bddc04c614f5ee662e291ec22410572 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Thu, 27 Mar 2025 11:09:28 -0400 Subject: [PATCH] web: Sync content of Django and nginx error pages. Also edit the text to more clearly explain the situation. --- templates/500.html | 42 ++++++++++++++++++++++--------------- web/html/5xx-cloud.html | 15 ++++++++++--- web/html/5xx.html | 10 +++++++-- zerver/tests/test_signup.py | 4 ++-- 4 files changed, 47 insertions(+), 24 deletions(-) diff --git a/templates/500.html b/templates/500.html index c8507fd5ea..b6d65baeaf 100644 --- a/templates/500.html +++ b/templates/500.html @@ -14,27 +14,35 @@

{{ _("Internal server error") }}

-

- {% trans %} - Your Zulip chat cannot be loaded because the server is experiencing technical difficulties. - {% endtrans %} -

-

- {% trans %} - This page will reload automatically when service is restored. - {% endtrans %} - {% if corporate_enabled %} + {% if corporate_enabled %} + +

{% trans %} - In the meantime, you can contact Zulip support. + Something went wrong. Sorry about that! We're aware of + the problem and are working to fix it. + Zulip will load automatically once it is working again. {% endtrans %} - {% else %} +

+

+ {% trans status_url="https://status.zulip.com/" %} + Please check Zulip Cloud status for + more information, and contact + Zulip support with any questions. + {% endtrans %} +

+ {% else %} + +

{% trans %} - In the meantime, you can contact - this server's administrators for support. + Something went wrong. Sorry about that! + Zulip will load automatically once it is working again. {% endtrans %} - {% endif %} -

- {% if not corporate_enabled %} +

+

+ {% trans %} + Contact this server's administrators for support. + {% endtrans %} +

{% trans troubleshooting_url="https://zulip.readthedocs.io/en/latest/production/troubleshooting.html" %} If you administer this server, you may want to check out the diff --git a/web/html/5xx-cloud.html b/web/html/5xx-cloud.html index 921e08e9d9..8929364f7e 100644 --- a/web/html/5xx-cloud.html +++ b/web/html/5xx-cloud.html @@ -22,10 +22,19 @@

+

Internal server error

-

Zulip Cloud is currently experiencing some technical difficulties. Sorry about that!

-

You can check our status page for more information.

-

The page will reload automatically soon after service is restored.

+

+ Something went wrong. Sorry about that! We're + aware of the problem and are working to fix + it. Zulip will load automatically once it is + working again. +

+

+ Please check Zulip Cloud status for + more information, and contact + Zulip support with any questions. +

diff --git a/web/html/5xx.html b/web/html/5xx.html index eb3d0fefe7..c35c27f406 100644 --- a/web/html/5xx.html +++ b/web/html/5xx.html @@ -22,9 +22,15 @@
+

Internal server error

-

This Zulip server is currently experiencing some technical difficulties. Sorry about that!

-

The page will reload automatically soon after service is restored.

+

+ Something went wrong. Sorry about that! + Zulip will load automatically once it is working again. +

+

If you administer this server, you may want to check out the + Zulip server troubleshooting guide. +

diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.py index fbb24cbe3d..f7447ccc14 100644 --- a/zerver/tests/test_signup.py +++ b/zerver/tests/test_signup.py @@ -2305,7 +2305,7 @@ class UserSignUpTest(ZulipTestCase): self.assertNotIn( "https://zulip.readthedocs.io/en/latest/subsystems/email.html", result.content.decode() ) - self.assert_in_response("server is experiencing technical difficulties", result) + self.assert_in_response("Something went wrong. Sorry about that!", result) self.assertTrue( "ERROR:root:Failed to deliver email during user registration" in m.output[0] ) @@ -2354,7 +2354,7 @@ class UserSignUpTest(ZulipTestCase): self.assertNotIn( "https://zulip.readthedocs.io/en/latest/subsystems/email.html", result.content.decode() ) - self.assert_in_response("server is experiencing technical difficulties", result) + self.assert_in_response("Something went wrong. Sorry about that!", result) self.assertTrue("ERROR:root:Failed to deliver email during realm creation" in m.output[0]) def test_user_default_language_and_timezone(self) -> None: