Skip to content

Commit 7cba437

Browse files
committed
debug
1 parent 477219f commit 7cba437

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/lib/api.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ export const makeChapterUrl = (chapterIdOrSlug: string, language: string): strin
3838
export const fetchChapter = async (chapterIdOrSlug: string, language: string) => {
3939
try {
4040
const url = makeChapterUrl(chapterIdOrSlug, language);
41-
console.log(url);
4241

4342
const res = await fetch(url);
4443
console.log('ok ', res.ok);
45-
console.log('txt ', await res.text());
46-
console.log('res ', res);
44+
console.log('status ', res.status);
45+
console.log('statusText ', res.statusText);
46+
console.log(
47+
'bufferLength ',
48+
await res.arrayBuffer().then(buffer => buffer.byteLength),
49+
);
4750

4851
const data = await res.json();
4952

0 commit comments

Comments
 (0)