When you don't supply the token or the token value is given null the SDK throws exception with message mix panel Server refused to accept messages, they may be malformed which i think is very confusing. I have found (on the internet) that it also throws the same error due to some other errors as well.
It would be good and helpful to have more proper and meaningful errors for such scenarios.
I think the sendData() method could be modified to return something more diverse and meaningful.
When you don't supply the token or the token value is given null the SDK throws exception with message mix panel Server refused to accept messages, they may be malformed which i think is very confusing. I have found (on the internet) that it also throws the same error due to some other errors as well.
It would be good and helpful to have more proper and meaningful errors for such scenarios.
I think the sendData() method could be modified to return something more diverse and meaningful.