diff --git a/src/index.ts b/src/index.ts index dff9e11..de2f54c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -263,6 +263,8 @@ async function streamUploadToDrive(accessToken: string, stream: ReadableStream | const uploadUrl = initRes.headers.get("Location"); if (!uploadUrl) { + console.error(initRes.status); + console.error(await initRes.text()); throw new Error("Failed to get upload URL"); }