Relative Content

Tag Archive for javascripttcpresponsemultipartform-dataform-data

Javascript response.formData() cause TypeError: Failed to fetch

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 […]