From 11917e9f9ed336a59a3c94651c067ad5d6104609 Mon Sep 17 00:00:00 2001 From: Harman-singh-waraich Date: Sun, 16 Feb 2025 12:47:28 +0530 Subject: [PATCH 1/2] refactor: debugging --- utils/publishToGraph.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/publishToGraph.js b/utils/publishToGraph.js index 1e86589..601e153 100644 --- a/utils/publishToGraph.js +++ b/utils/publishToGraph.js @@ -10,11 +10,14 @@ export const publishToGraph = async (fileName, data) => { const payload = new FormData(); payload.append("file", new Blob([data]), fileName); + console.log("Graph url:", url); const response = await fetch(url, { method: "POST", body: payload, }); + console.log("response:", response); + console.log("response body:", await response.text(), response.body); if (!response.ok) { throw new Error( From bf5fd97a1bc6ff3a57c92dd3bf8f9cbe66f72d38 Mon Sep 17 00:00:00 2001 From: Harman-singh-waraich Date: Sun, 16 Feb 2025 12:55:56 +0530 Subject: [PATCH 2/2] refactor: debugging-again --- utils/publishToGraph.js | 1 - 1 file changed, 1 deletion(-) diff --git a/utils/publishToGraph.js b/utils/publishToGraph.js index 601e153..6f76d9a 100644 --- a/utils/publishToGraph.js +++ b/utils/publishToGraph.js @@ -16,7 +16,6 @@ export const publishToGraph = async (fileName, data) => { method: "POST", body: payload, }); - console.log("response:", response); console.log("response body:", await response.text(), response.body); if (!response.ok) {