Mike Maughan
Posts: 0
Joined: Wed Feb 19, 2014 10:55 pm

update db service error code DBSP260

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

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

update db service error code DBSP260

Hello,

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

Mike Maughan
Posts: 0
Joined: Wed Feb 19, 2014 10:55 pm

update db service error code DBSP260

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

Return to “Issues”