In case of something goes wrong, like the server did not respond, or the request body was incorrect or authentication could not happen, the Fyre server send errors response in a standard format. The error response contains three fields: message , code, success, and error. Sample error response body:
message:'The user has not participated in the events yet',
Exact error can be idenfied by Error Codes contains in the code field of error response body. Below are the list of available error codes:
You might have used wrong privateKey and appId to generate signature.
appId that you have added in the data body does not exist in Fyre. May be you have added wrong appId.
You have entered wrong eventId in data parameter.
You have not created any event yet. Please create event from Fyre Admin Dashboard.
Signature has expired.It may possible you have entered exp(signature expiry time) is greater than iat (signature issued time) or you are using same signature again.
User that trying to participate in event does not exists in Fyre platform.
User has not participated in any event yet.
This error has occurred because user has clicked on the link to participate in an event but has not completed the process of participation.
You are trying to participate in an event with invalid email Id.
This is internal to Fyre. Please contact Fyre team.