researchgate/restler

Restler Delete is throwing Error Executing Database Query

suryanaresh opened this issue · 1 comments

Hi Team,

I am using Restler to call a DELETE API which deletes an existing emailId.
Error thrown :

null: Object {MESSAGE: "Error Executing Database Query.", SUCCESS: false}

Code Snippet:
var defered = protractor.promise.defer();
restler.del('',{data:{"insured":emailId}}).on('complete', function (result) {
if (result instanceof Error) {
defered.reject(result.message)
} else {
defered.fulfill(result);
}
});
return defered.promise;

Can someone please let me know if I'm doing anything wrong here?

Regards,
Naresh Surya

I am able to fix this issue by changing URL passed in.
Thanks,
Naresh Surya