diff --git a/src/backend/api.js b/src/backend/api.js index 51fc3f3..09ec5e7 100644 --- a/src/backend/api.js +++ b/src/backend/api.js @@ -23,7 +23,10 @@ export async function post(path, body) { console.log("Initial data from API:", res) - const data = JSON.parse(await res.text()); + const txt = await res.text(); + console.log("Initial text from API:", txt) + + const data = JSON.parse(txt); console.log("Data from API:", data)