Reading XML in Velo JS Backend: Error: Converting circular structure to JSON

Question:
It’s my first time - forgive me if not relevant or something is missing:
I am trying to fetch a XML document in Wix Velo JS Backend, but I have the: “Error: Converting circular structure to JSON”.
I use the following code to read the XML:
export const get_branches_func = webMethod(Permissions.Anyone, (token) =>
{

return fetch(‘https://webservices.vebra.com/export/‘+datafeedid+’/v12/branch’, {
‘method’: ‘get’,
‘headers’: {
‘Authorization’: AuthHeader
},
})
.then((httpResponse) => {
if (httpResponse.ok) {
console.log("Response OK: ", httpResponse);
return (httpResponse.text());
}
})
.then(xmlText => {
const parser = new DOMParser();
const xmlDoc = parser.parseFromString(xmlText,
‘text/xml’);
// Now you can work with the parsed XML document
console.log(“xmlDoc:”, xmlDoc)
return (xmlDoc);
}
);}
)

I have the files with the successful response from the fetch (httpResponse).
and the xmlDoc parsed, but they seem too big to add here,
Many Thanks if you can help
C

Product:
Wix Editor, Velo, Backend

What are you trying to achieve:
[Explain the details of what you are trying to achieve. The more details you provide, the easier it is to understand what you need.]

What have you already tried:
[Share resources, forum topics, articles, or tutorials you’ve already used to try and answer your question.]

Additional information:
[Include any other pertinent details or information that might be helpful for people to know when trying to answer your question.]