JacobLinCool / JacobLinCool/LeetCode-Query
Unable to get User Information
- Langage dominant
- TypeScript
- Étoiles
- 130
- Forks
- 23
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
# 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
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
L’échec est signalé via index.js dans _fetch, get_csrf et Credential.init, avec Card.js qui appelle getUser. Reproduisez l’appel du navigateur indiqué dans l’issue et suivez l’invocation de fetch ; c’est terminé lorsque leetcode.user("username") renvoie les informations de l’utilisateur sans l’erreur Illegal invocation.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, typescript
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100