Skip to Content
0
Jul 25, 2023 at 04:03 PM

Unable to Send Request to REST API in SAP MDK.

227 Views Last edit Jul 25, 2023 at 04:05 PM 2 rev

Greetings to all, I am developing one SAP MDK application using REST API. REST API is prepared in Node JS and tested. I am not able to POST data in backend through MDK application. I am following Step 10 to Step15 of this developer blog for posting data in backend. I am getting invalid JSON error. I am assuming by seeing error REST API for POST is not called. Here are screenshots for Error:

errormdk1.png

errormdk2.png

Here is my CreateLunch.action related to my POST request:

mdk1.png

mdk2.png

Here is screenshot for CreateLunch.page:

mdk3.png

Rest of the procedure for close modal and others are same as mention in developer blog. Please guide me to resolve this, it will be very helpful for me.

Thanks.

Attachments

errormdk1.png (5.4 kB)
errormdk2.png (24.5 kB)
mdk1.png (58.2 kB)
mdk2.png (33.3 kB)
mdk3.png (40.1 kB)