-
Notifications
You must be signed in to change notification settings - Fork 4.6k
fix: correct timeout error page status code #41810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -487,11 +487,11 @@ export const BACK_TO_HOMEPAGE = () => "Go back to homepage"; | |
| // error pages | ||
| export const PAGE_NOT_FOUND_TITLE = () => "404"; | ||
| export const PAGE_NOT_FOUND = () => "Page not found"; | ||
| export const PAGE_SERVER_TIMEOUT_ERROR_CODE = () => "504"; | ||
| export const PAGE_SERVER_TIMEOUT_ERROR_CODE = () => "408"; | ||
| export const PAGE_SERVER_TIMEOUT_TITLE = () => | ||
| "Appsmith server is taking too long to respond"; | ||
| "Request timed out"; | ||
| export const PAGE_SERVER_TIMEOUT_DESCRIPTION = () => | ||
| `Please retry after some time`; | ||
| `The server is taking too long to respond. Please retry after some time`; | ||
|
Comment on lines
+492
to
+494
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Semantic inconsistency between error code and error message. The error code 408 (Request Timeout) indicates a client-side timeout, but the description "The server is taking too long to respond" describes a server-side timeout scenario. This creates confusion:
The message should semantically align with the chosen status code to avoid user confusion and aid in troubleshooting. 🤖 Prompt for AI Agents |
||
| export const PAGE_CLIENT_ERROR_TITLE = () => "Whoops something went wrong!"; | ||
| export const PAGE_CLIENT_ERROR_DESCRIPTION = () => | ||
| "This is embarrassing, please contact Appsmith support for help"; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: appsmithorg/appsmith
Length of output: 92
🏁 Script executed:
Repository: appsmithorg/appsmith
Length of output: 2858
🏁 Script executed:
Repository: appsmithorg/appsmith
Length of output: 854
🏁 Script executed:
Repository: appsmithorg/appsmith
Length of output: 161
The error code and message have conflicting semantics.
HTTP 408 (Request Timeout) indicates the client failed to send a request within the timeout window, while the message "The server is taking too long to respond" describes server-side behavior, which aligns with HTTP 504 (Gateway Timeout).
Either:
"504"to match the message semantics, orAdditionally, verify that issue
#41544referenced in the PR ("Allowing only invited users to register is not working") is the correct issue—it appears unrelated to timeout error codes.🤖 Prompt for AI Agents