Search code examples
iosapplozic

Unable to register user with Arabic names


I am getting failed resonse while registering users with Arabic names.

Request:

PARAM_STRING USER_REGISTRATION :: {
  "contactNumber": "",
  "userTypeId": 0,
  "authenticationTypeId": 0,
  "notificationMode": 0,
  "deviceType": 4,
  "deviceApnsType": 1,
  "userId": "محمد رضوان رشيد",
  "password": "",
  "imageLink": "<image url>",
  "emailVerified": 1,
  "unreadCountType": 1,
  "appVersionCode": "106",
  "prefContactAPI": 2,
  "emailId": "محمد رضوان رشيد",
  "displayName": "محمد رضوان رشيد",
  "applicationId": "<APPLICATION_ID>"
}

Response:

enter image description here

api error :

CREATE ACCOUNT - {
  "status": "error",
  "errorResponse": [
    {
      "errorCode": "AL-I-01",
      "description": "internal server error",
      "displayMessage": "could not extract ResultSet"
    }
  ],
  "generatedAt": 1473527281694
}

Solution

  • It is happening because of the

    "userId": "محمد رضوان رشيد"

    Arabic names are supported in display name

    "displayName": "محمد رضوان رشيد"

    UserId should be unique for each user and it should be alpha numeric without any spaces, +, *, $ or any special characters.