I’m new to http requests, html and json all together. I’m trying to send a simple post request to my website to add an item to one of my collections. However, I can’t seem to get it working.
I managed to get a get request working but for some reason the post request just wont work.
@raphaelhuotmtl Now that you mention brewing I’m sure you have peaked Yisrael’s (& GOS’s) interest
In the meantime, what is your collection name? The code on your initial post shows your collection id as fastLifeLeaderboard but on the second it is myCollection
@shantanukumar847 Thanks for pointing this out! Just fixed it back to fastLifeLeaderboard. The issue still persist however. I’ve been meaning to try out the console log but had no idea how! Thank for the link I’ll see if I can learn more about my issue
@raphaelhuotmtl
Yes do work with the console log within Wix as Shan has mentioned, it can be your best friend (sometimes!), although some might say that you should now be looking at using debugging tools like Chromes own DevTools instead, however for yourself the console log should be perfectly fine for your needs.
I’m not too sure what to do from here.
wixData.insert is supposed to be handling raw JSON right? or am I supposed to parse it?
I submitted a callback request to Wix for some help on this and they seemed to have denied it by mail. I feel like I have followed documentation? Is there something I’m missing?
@shantanukumar847 … it was the wrong id. IT WORKS OMG!! You’re the best! I though editing the name would’ve edited the id but it didn’t. It registers the json in the live version now! Thank you so much for the support and sorry that the issue was from such a simple mistake.