const response = await fetch(generalAddress + categoriesAddress, {
'headers': {
'Accept': acceptMultipart
},
'method': 'GET'
});
const formData = await response.formData();
console.log(formData);
This simple code block always result in Type Error: Failed to fetch.
If I log the first variable (to avoid formData function) I successively retrieve a response.
No matter what I try I always get the same error when trying to use formData().
I would love to get some help from more advanced devs. I need to successively get form data from a response.
TIA
Please don’t ask why I use from data instead of XML or JASON
Despite searching the documentation or forums I didn’t find a relevant topic, not even to mention a solution. It seems like no-one really uses form data on responses
user25721060 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.