Page 1 of 1

update db service error code DBSP260

Posted: Thu Mar 27, 2014 5:55 pm
by Mike Maughan

So I display a grid with two input components, a label with the id and a button, iterated and populated with the db list service.

So the user can change the input text of two variables corresponding to the same object_id when the button is clicked (so one update at a time).

When a user clicks on the button, the inputs are stored in local variables and then a popup alert happens to confirm to me that the variables made it to the localStorage correctly, and then the update service is invoked and the following error is received:

Test failed! Please check service properties and the error details in "Response" area.

{
"status":"400 Bad Request",
"url":"https://api.appery.io/rest/1/db/colle...",
"response":{
"code":"DBSP260",
"description":"Object must be present in the request body"
}
}

Any guidance would be appreciated. I'm new to development but your great app building tool, tutorials and support have helped me through it.

Thanks,

Mike


update db service error code DBSP260

Posted: Thu Mar 27, 2014 6:59 pm
by Nikita

Hello,

Could you provide a screenshot with service "test" tab, where you get this error.


update db service error code DBSP260

Posted: Thu Mar 27, 2014 7:23 pm
by Mike Maughan

update db service error code DBSP260

Posted: Thu Mar 27, 2014 7:40 pm
by Mike Maughan

Ah Hah! I found the issue. As you can see in the screenshot above, the Request URL is looking for lower-case "object_id" where I was providing an uppercase "Object_id". I changed the request parameter to the lower-case "object_id" and everything works. I didn't think to check case sensitivity...

Thanks for your quick reply, everything is working just fine now.

Mike