I have implemented a new simple API named "test" in my MobileService. Currently, I am attempting to make a request from Android to fill my passed object:
Exists result = mClient.invokeApi("test","ID" ,Exists.class).get();
The structure of my 'Exists' class is as follows:
public class Exists {
public boolean Exists;
}
This is how my test.js file appears:
module.exports = {
"post": function (req, res, next) {
res.json({"Exists": "true"});
res.send();
}
};
However, when I execute this code, it throws a java.lang.interruptedException. Can anyone clarify why this error occurs and suggest a solution?