Похожие чаты

Hey peeps Can anyone help me spot a semantic mistake in

this POST request? I have been getting 422 error. Thanks in advance 🙏

6 ответов

7 просмотров

Have you tried without the JSON.stringify around your body?

Mohammed-Zeeshan Автор вопроса
Mohammed-Zeeshan Автор вопроса
Watzon the Zen Fox
Wouldn’t hurt to try anyway

Oh you mean wrapping stringify around body, right?

Mohammed Zeeshan
Oh you mean wrapping stringify around body, right?

No haha. I meant just getting rid of the stringify. I’m pretty sure the fetch api will take care of that for you, but I could be wrong.

Mohammed-Zeeshan Автор вопроса

Update: this worked finally. I just had to replace the text body with data cc @watzon 🥳

Похожие вопросы

Обсуждают сегодня

Hi, I can't understand promises in JavaScript and what we should use them for (maybe the teacher didn't teach well XD). Do you have a solution for this? And are promises used...
A
29
Ещё такой вопрос. Мне необходимо хранить пароль пользователя локально. Для этого планирую использовать ini файл. Это для автозаполнения полей логин и пароль при авторизации. Е...
Евгений
19
Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
Xem delist ho rha hai agr naa bhechu toh kya hoga after 1 july?
ABHI
27
@ackza What is the main purpose of the Voting? It's basically to quality check and approve contents. If your post is really good quality or correct and it get downvoted or d...
Imman
1
VIP 332 Quarterly XVS Buyback, Funds Allocation and New Tokenomics Summary This VIP outlines the protocol’s Quarterly Buyback and Funds Allocation strategy as per our Tokeno...
Venus Announcements
8
Hi guys, I'm looking for a good LLM course. Is there any course to learn LLMs in advanced? I'm aiming to use them in my apps, so a perfect course in my openion, is not only a ...
Taha
14
Quick reminder regarding the first phase of the token merger⚠️ As we approach Phase 1 of the token merger, OCEAN and AGIX will migrate to FET starting July 1st! Here's a li...
Stip11
1
Did you guys see the latest tweet from TonGifts? 🚀
Mike
44
I love the passion, really do. I do think this is being blown way out of proportion. We are not deleting our Telegram or not allowing you to talk about anything you want, a...
Mike Herron
3
Карта сайта