JacobLinCool / JacobLinCool/LeetCode-Query

Unable to get User Information

オープン
#93 コメント 4 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
130
フォーク
23
PR マージ指標
30日以内にマージされた PR はありません

説明

# Unable to get user information

## Code used to reproduce
```js
import { LeetCode } from "leetcode-query";

const leetcode = new LeetCode();
const user = await leetcode.user("username");
```

## Error

```bash
Uncaught (in promise) TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
at _fetch (index.js:71:1)
at get_csrf (index.js:87:1)
at Credential.init (index.js:111:1)
at getUser (Card.js:10:1)
at Card (Card.js:15:1)
at renderWithHooks (react-dom.development.js:15486:1)
at mountIndeterminateComponent (react-dom.development.js:20103:1)
at beginWork (react-dom.development.js:21626:1)
at beginWork$1 (react-dom.development.js:27465:1)
at performUnitOfWork (react-dom.development.js:26596:1)
```

Help me with this. @JacobLinCool

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

この失敗は、Card.js が getUser を呼び出す構成で、index.js の _fetch、get_csrf、Credential.init を通じて報告されます。Issue に示されているブラウザー呼び出しを再現し、fetch の呼び出しを追跡してください。leetcode.user("username") が Illegal invocation エラーなしでユーザー情報を返せば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, typescript
領域
api
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。