Error Codes

January 14, 2024 ยท View on GitHub

The following is a list of all the error codes that can be returned by the Parse API. You may also refer to RFC2616 for a list of http error codes. Make sure to check the error message for more details.

API Issues

NameCodeDescription
UserInvalidLoginParams101Invalid login parameters. Check error message for more details.
ObjectNotFound101The specified object or session doesn't exist or could not be found. Can also indicate that you do not have the necessary permissions to read or write this object. Check error message for more details.
InvalidQuery102There is a problem with the parameters used to construct this query. This could be an invalid field name or an invalid field type for a specific constraint. Check error message for more details.
InvalidClassName103Missing or invalid classname. Classnames are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters.
MissingObjectId104An unspecified object id.
InvalidFieldName105An invalid field name. Keys are case-sensitive. They must start with a letter, and a-zA-Z0-9_ are the only valid characters. Some field names may be reserved. Check error message for more details.
InvalidPointer106A malformed pointer was used. You would typically only see this if you have modified a client SDK.
InvalidJSON107Badly formed JSON was received upstream. This either indicates you have done something unusual with modifying how things encode to JSON, or the network is failing badly. Can also indicate an invalid utf-8 string or use of multiple form encoded values. Check error message for more details.
CommandUnavailable108The feature you tried to access is only available internally for testing purposes.
NotInitialized109You must call Parse.initialize before using the Parse library. Check the Quick Start guide for your platform.
ObjectTooLarge116The object is too large.
ExceededConfigParamsError116You have reached the limit of 100 config parameters.
InvalidLimitError117An invalid value was set for the limit. Check error message for more details.
InvalidSkipError118An invalid value was set for skip. Check error message for more details.
OperationForbidden119The operation isn't allowed for clients due to class-level permissions. Check error message for more details.
CacheMiss120The result was not found in the cache.
InvalidNestedKey121An invalid key was used in a nested JSONObject. Check error message for more details.
InvalidACL123An invalid ACL was provided.
InvalidEmailAddress125The email address was invalid.
DuplicateValue137Unique field was given a value that is already taken.
InvalidRoleName139Role's name is invalid.
ReservedValue139Field value is reserved.
ExceededCollectionQuota140You have reached the quota on the number of classes in your app. Please delete some classes if you need to add a new class.
ScriptFailed141Cloud Code script failed. Usually points to a JavaScript error. Check error message for more details.
FunctionNotFound141Cloud function not found. Check that the specified Cloud function is present in your Cloud Code script and has been deployed.
JobNotFound141Background job not found. Check that the specified job is present in your Cloud Code script and has been deployed.
ValidationFailed142Cloud Code validation failed.
WebhookError143Webhook error.
InvalidImageData150Invalid image data.
UnsavedFileError151An unsaved file.
InvalidPushTimeError152An invalid push time was specified.
HostingError158Hosting error.
InvalidEventName160The provided analytics event name is invalid.
ClassNotEmpty255Class is not empty and cannot be dropped.
AppNameInvalid256App name is invalid.
MissingAPIKeyError902The request is missing an API key.
InvalidAPIKeyError903The request is using an invalid API key.
{: .docs_table}
NameCodeDescription
IncorrectType111A field was set to an inconsistent type. Check error message for more details.
InvalidChannelName112Invalid channel name. A channel name is either an empty string (the broadcast channel) or contains only a-zA-Z0-9_ characters and starts with a letter.
InvalidSubscriptionType113Bad subscription type. Check error message for more details.
InvalidDeviceToken114The provided device token is invalid.
PushMisconfigured115Push is misconfigured in your app. Check error message for more details.
PushWhereAndChannels115Can't set channels for a query-targeted push. You can fix this by moving the channels into your push query constraints.
PushWhereAndType115Can't set device type for a query-targeted push. You can fix this by incorporating the device type constraints into your push query.
PushMissingData115Push is missing a 'data' field.
PushMissingChannels115Non-query push is missing a 'channels' field. Fix by passing a 'channels' or 'query' field.
ClientPushDisabled115Client-initiated push is not enabled. Check your Parse app's push notification settings.
RestPushDisabled115REST-initiated push is not enabled. Check your Parse app's push notification settings.
ClientPushWithURI115Client-initiated push cannot use the "uri" option.
PushQueryOrPayloadTooLarge115Your push query or data payload is too large. Check error message for more details.
InvalidExpirationError138Invalid expiration value.
MissingPushIdError156A push id is missing. Deprecated.
MissingDeviceTypeError157The device type field is missing. Deprecated.
{: .docs_table}
NameCodeDescription
InvalidFileName122An invalid filename was used for Parse File. A valid file name contains only a-zA-Z0-9_. characters and is between 1 and 128 characters.
MissingContentType126Missing content type.
MissingContentLength127Missing content length.
InvalidContentLength128Invalid content length.
FileTooLarge129File size exceeds maximum allowed.
FileSaveError130Error saving a file.
FileDeleteError153File could not be deleted.
FileDeleteUnnamedError161Unnamed file could not be deleted.
{: .docs_table}
NameCodeDescription
InvalidInstallationIdError132Invalid installation id.
InvalidDeviceTypeError133Invalid device type.
InvalidChannelsArrayError134Invalid channels array value.
MissingRequiredFieldError135Required field is missing.
ChangedImmutableFieldError136An immutable field was changed.
{: .docs_table}
NameCodeDescription
ReceiptMissing143Product purchase receipt is missing.
InvalidPurchaseReceipt144Product purchase receipt is invalid.
PaymentDisabled145Payment is disabled on this device.
InvalidProductIdentifier146The product identifier is invalid.
ProductNotFoundInAppStore147The product is not found in the App Store.
InvalidServerResponse148The Apple server response is not valid.
ProductDownloadFilesystemError149The product fails to download due to file system error.
{: .docs_table}
NameCodeDescription
UsernameMissing200The username is missing or empty.
PasswordMissing201The password is missing or empty.
UsernameTaken202The username has already been taken.
UserEmailTaken203Email has already been used.
UserEmailMissing204The email is missing, and must be specified.
UserWithEmailNotFound205A user with the specified email was not found.
SessionMissing206A user object without a valid session could not be altered.
MustCreateUserThroughSignup207A user can only be created through signup.
AccountAlreadyLinked208An account being linked is already linked to another user.
InvalidSessionToken209The device's session token is no longer valid. The application should ask the user to log in again.
{: .docs_table}

Linked services errors

NameCodeDescription
LinkedIdMissing250A user cannot be linked to an account because that account's id could not be found.
InvalidLinkedSession251A user with a linked (e.g. Facebook or Twitter) account has an invalid session. Check error message for more details.
InvalidGeneralAuthData251Invalid auth data value used.
BadAnonymousID251Anonymous id is not a valid lowercase UUID.
FacebookBadToken251The supplied Facebook session token is expired or invalid.
FacebookBadID251A user with a linked Facebook account has an invalid session.
FacebookWrongAppID251Unacceptable Facebook application id.
TwitterVerificationFailed251Twitter credential verification failed.
TwitterWrongID251Submitted Twitter id does not match the id associated with the submitted access token.
TwitterWrongScreenName251Submitted Twitter handle does not match the handle associated with the submitted access token.
TwitterConnectFailure251Twitter credentials could not be verified due to problems accessing the Twitter API.
UnsupportedService252A service being linked (e.g. Facebook or Twitter) is unsupported. Check error message for more details.
UsernameSigninDisabled252Authentication by username and password is not supported for this application. Check your Parse app's authentication settings.
AnonymousSigninDisabled252Anonymous users are not supported for this application. Check your Parse app's authentication settings.
FacebookSigninDisabled252Authentication by Facebook is not supported for this application. Check your Parse app's authentication settings.
TwitterSigninDisabled252Authentication by Twitter is not supported for this application. Check your Parse app's authentication settings.
InvalidAuthDataError253An invalid authData value was passed. Check error message for more details.
LinkingNotSupportedError999Linking to an external account not supported yet with signup_or_login. Use update instead.
{: .docs_table}

Client-only errors

NameCodeDescription
ConnectionFailed100The connection to the Parse servers failed.
AggregateError600There were multiple errors. Aggregate errors have an "errors" property, which is an array of error objects with more detail about each error that occurred.
FileReadError 601Unable to read input for a Parse File on the client.
XDomainRequest602A real error code is unavailable because we had to use an XDomainRequest object to allow CORS requests in Internet Explorer, which strips the body from HTTP responses that have a non-2XX status code.
{: .docs_table}

Operational issues

NameCodeDescription
RequestTimeout124The request was slow and timed out. Typically this indicates that the request is too expensive to run. You may see this when a Cloud function did not finish before timing out, or when a Parse.Cloud.httpRequest connection times out.
InefficientQueryError154An inefficient query was rejected by the server. Refer to the Performance Guide and slow query log.
{: .docs_table}

Other issues

NameCodeDescription
OtherCause-1An unknown error or an error unrelated to Parse occurred.
InternalServerError1Internal server error. No information available.
ServiceUnavailable2The service is currently unavailable.
ClientDisconnected4Connection failure.
{: .docs_table}

Error Code Ranges

In order to provide better organization and avoid conflicts with Parse Platform's built-in Parse.Error codes, the following ranges are defined:

  • Error code range: <= 4999 (including negative numbers)
  • This range is reserved exclusively for errors generated by Parse Server and its directly related modules. It includes all predefined errors listed in the documentation.

Reserved

  • Error code range: >= 5000 and <= 8999
  • This range is currently reserved for future use and should not be used by anyone.

App Developers (Custom App Errors)

  • Error code range: >= 9000 and <= 9999
  • Developers may use this range for defining custom errors specific to their applications. This range is reserved to ensure that custom application errors do not conflict with those defined by Parse Server and its modules.

3rd Party Providers of Parse Platform Components

  • We discourage from introducing new custom error codes in 3rd party components, as they may conflict with either of the reserved ranges mentioned above. Instead, use the general internal Parse Server error code 1 and add any specific information in the error message, or use another pre-defined error code of Parse Platform.