check json format
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user