You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If Parse JS SDK is unable to connect to the server, the error thrown is 'XMLHttpRequest failed: "Unable to connect to the Parse API" which is rather confusing for client users.
Feature / Enhancement Description
It would be good to change the default error message to something more helpful such as Could not connect to the server which non-technical users could understand. Or, allow JS SDK to specify custom error messages via something like Parse.customError.101
ConnectionFailed | 100 | The connection to the Parse servers failed.
I classified this as a bug, because we do have an explicit Parse.Error defined for this and it is not thrown.
This looks like a breaking change. If the error currently thrown has no error code, only the message, then someone parsing for that string (instead of comparing error codes as it should be) will have to change their client code, right?
mtrezza
added
type:feature
New feature or improvement of existing feature
type:bug
Impaired feature or lacking behavior that is likely assumed
and removed
type:feature
New feature or improvement of existing feature
labels
Apr 4, 2022
New Feature / Enhancement Checklist
Current Limitation
If Parse JS SDK is unable to connect to the server, the error thrown is
'XMLHttpRequest failed: "Unable to connect to the Parse API"
which is rather confusing for client users.Feature / Enhancement Description
It would be good to change the default error message to something more helpful such as
Could not connect to the server
which non-technical users could understand. Or, allow JS SDK to specify custom error messages via something likeParse.customError.101
Example Use Case
n/a
Alternatives / Workarounds
n/a
3rd Party References
related
The text was updated successfully, but these errors were encountered: