API Error Code

API error code and its correspondent solution suggestion

Sign in and sign up error codes.

API

Code

Message

Explain

general

1000

success

sign_in/sign_up

1001

email/user_id or password is missing

No email, user id or password.This function is only for MW users.

sign_in/sign_up

1002

mw_x_jwt is missing, use jsonbody form instead

Cannot find mw-x-jwt

sign_in/sign_up

1003

Failed to decode [partner]'s MW_X_JWT

Cannot decode partner infomation from mw-x-jwt

sign_in

1104

The user doest not exist. Please sign up.

User was not registered yet, please register

sign_in

1105

Please go to your user_id to confirm this account.

Need to confirm your account, this function is only for MW users.

sign_in

1106

Wrong password. Please try again.

This function is only for MW users.

sign_in/sign_up

1107

no secretkey for {partner}

Please contact MW for this case

sign_in/sign_up

1108

Undefined token type: {token_type}

token_type was undefined

sign_up

1201

User [{user_id}] already exists in MW database.

sign_up

1202

failed to create item in user_partner table

sign_up

1203

user already exist with this user_id[{ user_id }].

sign_up

1204

Failed to send confirmation email

This function is only for MW users.

sign_up

1205

Failed to confirm user account, please contact MW

This function is only for MW users.

authenticate

1301

JWT string is None when authentificate.

authenticate

1302

Failed to get partner from JWT token.

authenticate

1303

Failed to get secret key for partner, please contact mw

authenticate

1304

Could not authenticate user from JWT

authenticate

1305

Your current session is expired. Please sign in again.

authenticate

1306

error to authorize

create_profile/

get_measurements etc

1307

The user[{user_id}] associated with Partner[{partner}] does not exist.

no certain user under given partner

get_measurement/

get_profile_photo_by_id etc

1308

user_id [] profile_id[] not exist

profile not exist under this account, or profile id input is not valid

check_sdk

2301

client id {} does not exist, please contact MagicWeaver

only applies to SDK partners

check_sdk

2302

client id {} does not match with the api_key {}

only applies to SDK partners

Profile related error code, such as create_profile/update_profile etc

API

Code

Message

Explain

create_profile/

update_profile/

get_measurements/

update_measurement

2102

Failed to get json data from input

json is None, please check json input

create_profile/

update_profile

2103

json error happened

create_profile

2104

Failed to create profile dict

please check if the key of the profile dict is correct

create_profile

2105

front or side photo is missing

create_profile

2106

Failed to upload photo to s3

create_profile

2107

Fail to create dictionary of parameters.

create_profile

2108

Failed to write temporary parameters file

create_profile

2109

Failed to add a new profile to database

update_profile/

update_measurements

2110

The input parameters have no [profile]. [profile] key is missing

update_profile

2111

Failed to update profile

update_profile

2121

Failed to delete the profile

update_profile

2122

Profile doesn't exist

update_measurement

2131

The input json has no [measurements] key

update_measurement

2132

Failed to update measurements

get_3d_models_by_profile_id/ etc

2201

Unauthorized Access. Please contact MagicWeaver

get_3d_models_by_profile_id

2202

Could not download the model file from the profile during authorize

get_3d_models_by_profile_id

2203

Invalid 3d model file format, Please contact MagicWeaver

get_3d_models_by_profile_id

2204

Failed to fetch model file location

get_3d_models_by_profile_id

2205

Missing parameter: model_file

get_3d_models_by_profile_id

2206

Failed to save 3D model file due to:

get_3d_models_by_profile_id

2207

There is no [%s] 3D model file

show_3d_models_in_js_viewer_by_profile_id

2205

Illegal access due to the invalid MW-JWT

get_measurement

2220

The measurement data is still in progress. Not ready yet.

get_measurement

2221

required parts param has to be a list

get_measurement

2222

Failed to retrieve measurements

get_measurement

2223

Failed to show measurements

get_profile_photos_by_id

2250

invalid profile

no such profile under such user

list_profiles

2301

List_profile: Invalid request parameter(required)

request type must be the following:

app_list, name_only,id_only,name_id

list_profiles

2302

Failed to list profiles

list_profile

2303

profile is skipped or deleted

Last updated