JacobLinCool / JacobLinCool/LeetCode-Query
Unable to get User Information
- Lingua principale
- TypeScript
- Stelle
- 130
- Fork
- 23
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
# 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
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Il problema viene segnalato tramite index.js in _fetch, get_csrf e Credential.init, con Card.js che chiama getUser. Riproduci la chiamata del browser mostrata nell’issue e traccia l’invocazione di fetch; il lavoro è completato quando leetcode.user("username") restituisce le informazioni dell’utente senza l’errore Illegal invocation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, typescript
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100