export default async function fetch_get(url , headersArr ) {
let headers = Object.fromEntries(headersArr);
console.info("Fetching", url, headers);
const resp = await fetch(url, {
headers
});
try {
const text = await resp.text();
return text;
} catch (e) {
throw new Error(e); }
}