-
Notifications
You must be signed in to change notification settings - Fork 415
MSC4335: M_USER_LIMIT_EXCEEDED error code #4335
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: main
Are you sure you want to change the base?
Conversation
|
@mscbot fcp merge |
|
Team member @mscbot has proposed to merge this. The next step is review by the rest of the tagged people: Concerns:
Once at least 75% of reviewers approve (and there are no outstanding concerns), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for information about what commands tagged team members can give me. |
|
MSCs proposed for Final Comment Period (FCP) should meet the requirements outlined in the checklist prior to being accepted into the spec. This checklist is a bit long, but aims to reduce the number of follow-on MSCs after a feature lands. SCT members: please check off things you check for, and raise a concern against FCP if the checklist is incomplete. If an item doesn't apply, prefer to check it rather than remove it. Unchecking items is encouraged where applicable. Checklist:
|
|
@mscbot concern Checklist not complete/started (any SCT member can resolve this) |
|
I have added an alternative of using server side translations here instead of I think this would actually provide a better UX overall, albeit at the expense of complexity for the homeserver operator and error payload size. I would welcome input on this. |
| * An advantage is that the homeserver can be as specific as it wishes with the messages. For example, the matrix.org | ||
| homeserver can specifically refer to the usage plans that are available rather than having to be generic. |
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.
Could the server not use specific wording in error field of the current standard error response, too?
E.g.:
{
"errcode": "M_USER_LIMIT_EXCEEDED",
"error": "You have reached your daily upload limit. More information on the usage limits that apply to your account is available <a href=\"https://matrix.org/homeserver/pricing/#usage-limits\">here</a>. You can upgrade to a Premium account to increase the limits <a href=\"https://account.matrix.org/account?action=org.matrix.plan_management\">here</a>.",
..
}From a quick check the only restriction on error that I could find in the spec is that it's human readable.
The
errorstring will be a human-readable error message, usually a sentence explaining what went wrong.
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.
Clients shouldn't show a non-i18n'd error field though because it may not match the user's language requirements, so clients end up having to use only errcode and mapping those to translations themselves
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.
Ah. Ok, that makes sense, thanks.
Rendered
Implementations:
In the prototype implementation when this error code is encountered for a file upload, it is rendered as follows for a soft limit:
And like this for a hard limit:
I am employed by Element to write this MSC on behalf of the Matrix Foundation for use on the matrix.org homeserver. Hence the use of the
org.matrixnamespace on the unstable values.SCT Stuff:
MSC checklist
FCP tickyboxes