I am trying to build a web app which should get data from Django Rest Framework (using Serializer) and pass it to JavaScript and generate markers of GoogleMaps.
All of this code works. It activates the BS5 modal and fills it with a record using a stored procedure on MySQL db. The issue was calling the wrong variable. If
I need help to upload large zip file (compressed) and save it to my MongoDB: <form action="./uploid" method="post" id="uploadForm" enctype="multipart
After reading all the MDN docs on CORS, I am trying to fetch resources at a spring boot server at localhost:8080 from a ReactJS app at localhost:3000, yet i can
I have written the following function in js to verify a ReCAPTCHA token: export async function validateHuman(token) { const secret = "funny_little_secret";
I'm a bit new to coding in a JS/TS way and I just wanted to know the best practice when it comes to returning and handling void and values that come from a fetc
When I click on my button, I expect the data from the endpoint to be returned. However, I get this error: Id:undefinedURL:undefinedName:undefinedDescription:und
I am using SWR to fetch data to populate a table with. I am using the following code: const { data: items, error } = useSWR(fetchAllItems.name, fetchAllItems)
I want to fetch all my published blogposts from DatoCMS. Actually, I'm doing this. The problem is that it only brings 65 when I have more than 100... does anyon
Post api work postman correctly but Rect JS post not working. Console get this error "POST https://localhost:5001/api/request 400 (Bad Request)" . I tried sever
function addElements(mailbox) { if (mailbox != 'sent') { let actionDivArchiveBtn = document.querySelector('#actions') let archiveButton = document
Trying post request in crud crud dynamically using fetch api but its showing error net::ERR_ABORTED 415 (Unsupported Media Type) const addItemToCartHandler = as
I have a simple contact form in Next.js that sends an email by using the FormSubmit api when the submit button is clicked: The code for the onSubmit handler is
I have a simple contact form in Next.js that sends an email by using the FormSubmit api when the submit button is clicked: The code for the onSubmit handler is
I use fetch for getting some resources from the server. I can see from logs that from time to time conversion to JSON fails on "TypeError: Failed to fetch" whic
As a newbie to React I have been stuck for awhile on how to get my access token to be put to use in a second fetch API. In the first fetch (Get token), I am abl
I want show_name() to run and then call another function. I don't understand why show_name().then fails. I'm probably overlooking something. async
I have a form that submits data with the javascript fetch() API to MySQL database with PHP. In the code below, when the form is submitted a success message is o
I have a little trouble using fetch, This is javascript code: function loginJS() { const login = document.getElementById('login'); const nome = documen
I'm trying to create a login form. when I'm testing the service with Postman, I will get a body object with status code and etc. But, with