Page 1 of 1

Create service not adding any data to the parse database. Showing "undefined". Please help.

Posted: Tue May 05, 2015 5:44 pm
by Mahima Bhatnagar

I have created create service using parse back-end.
I need users to post comments. So when I am Pressing test button in the create service, it shows response with "updated at and created at". But in the parse database it is adding the row, with the object id, but in place of the text its blank...and displaying 'undefined'.
I have no idea where the problem is occurring.

Showing "undefined".Please help.


Create service not adding any data to the parse database. Showing "undefined". Please help.

Posted: Tue May 05, 2015 8:12 pm
by Serhii Kulibaba

Hello,

Please send us screenshots of request mapping and service settings, request parameters. Also screenshots from browsers network tab with request and server response data


Create service not adding any data to the parse database. Showing "undefined". Please help.

Posted: Tue May 05, 2015 9:04 pm
by Mahima Bhatnagar

This is the request for create service:
Image

This is the request for create service in query string:
Image

This is the request for create service in body:

This is service setting:
Image

Image

This is what it shows after test:
Image

This is the response:
Image

Mapping:
Image

Image


Create service not adding any data to the parse database. Showing "undefined". Please help.

Posted: Tue May 05, 2015 9:06 pm
by Mahima Bhatnagar

And this is what parse back end is showing

Image


Create service not adding any data to the parse database. Showing "undefined". Please help.

Posted: Fri May 08, 2015 3:03 am
by Yurii Orishchuk

Hi Mahima,

You use wrong place for request parameter. (Query srging).

But you need to use "Body" tab to set needed request parameter.

So please:

  1. Open "request" tab on "Query srging" subTab and delete "Comments" parameter there.
    Details: http://prntscr.com/72si3y/direct

  2. Open test tab and populate needed value in "Body" subTab. Then click "test".
    Details: http://prntscr.com/72sin2/direct

    Regards.