We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 477219f commit 7cba437Copy full SHA for 7cba437
src/lib/api.ts
@@ -38,12 +38,15 @@ export const makeChapterUrl = (chapterIdOrSlug: string, language: string): strin
38
export const fetchChapter = async (chapterIdOrSlug: string, language: string) => {
39
try {
40
const url = makeChapterUrl(chapterIdOrSlug, language);
41
- console.log(url);
42
43
const res = await fetch(url);
44
console.log('ok ', res.ok);
45
- console.log('txt ', await res.text());
46
- console.log('res ', res);
+ console.log('status ', res.status);
+ console.log('statusText ', res.statusText);
+ console.log(
47
+ 'bufferLength ',
48
+ await res.arrayBuffer().then(buffer => buffer.byteLength),
49
+ );
50
51
const data = await res.json();
52
0 commit comments