For password retrieval functionality I'm trying to call an appery.io REST service from an external server (node.js) script(currently running on my local machine).
GET requests work just fine, issueing POST/PUT requests fail with the following error:
{"statusCode":500,"data":{"code":"DBUS000","description":"Bad arguments passed to public abstract com.mongodb.DBObjec
t com.exadel.appery.dataservice.rest.resource.UserResource.signUp(com.mongodb.BasicDBObject) ( java.util.LinkedHashMap {username=asdfasf,
password=asdf} )"}}
Here are the request/header detials I'm sending:
"host":"api.appery.io",
"path":"/rest/1/db/users",
"method":"POST",
"Content-Type":"application/json; charset=UTF-8",
"Content-Length":53
"headers":{
"X-Appery-Database-Id":"52093c91e4b04c2d0a027d7f",
"X-Appery-Session-Token":"e3c68bc3-46d1-405f-a77e-58e501a4410d",
"Host":"api.appery.io",
"Referer":"http://localhost/clLib/clLib_users.html",
"Origin":"http://localhost",
"Cache-Control":"no-cache",
}
Could you tell me what I'm doing wrong?