Javascript – JS Fetch – data is undefined – promise
I want to analyse anwser from http request, display error if needed then return data. This is what I'm doing right now: fetch(URL,{method:"GET"}) .then(async response => { await read_errors(response) }) // .then(response => { read_errors(response) }) (Both had been tried)…