ERROR MESSAGES

ERROR MESSAGES -

Some common errors you might encounter during integration of dapps, listed below

ADD DAPP FUNCTION -

  1. ADMIN CAN'T BE 0 ADDRESS - the admin address passed as an argument for the parameter _appAdmin can’t be zero address, it has to be a valid address

  2. SURPASSED IMAGE LIMIT - the parameter _appScreenshots in add dapp function takes in an array of urls of images of the app, but currently this array can’t have more than 5 image urls. so make sure to pass less than 5 urls in _appScreenshots argument.

  3. SURPASSED CATEGORY LIMIT - the parameter _appCategory in add dapp function takes in an array of categories but currently this array can’t have more than 7 categories. so make sure to pass less than 8 categories in _appCategory argument.

  4. SURPASSED TAG LIMIT- the parameter _appTags in add dapp function takes in an array of tags but currently this array can’t have more than 7 tags. so make sure to pass less than 8 tags in _appTags argument.

SUBSCRIBE/UNSUBSCRIBE FUNCTION - (subscribeToDapp)

  1. INVALID DAPP ID - the argument entered in the parameter bytes appID should be a valid dapp Id, should start with 0x.

  2. UNCHANGED - the argument entered in the parameter bool subscriptionStatus should be opposite of what is the current subscription status in the smart contract. to check for current subscription status , use isSubscribed read function.

SEND_APP_NOTIFICATION FUNCTION - (sendAppNotification)

  1. INVALID DAPP ID - the argument entered in the parameter bytes appID should be a valid dapp Id, should start with 0x.

  2. NOT_ENOUGH_CREDIT - this error is displayed when the user who is doing the txn has no credits left for doing gasless txn.

  3. NOT_SUBSCRIBED - this error is displayed when the user wallet to which you are trying to send notification has not subscribed to the app id that is passed in the argument

Last updated