LeetCodeCN blocked by cloudflare.
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- Calme
- Stack technique
- typescript
- Domaine
- api
Piste de recherche
Commencez par LeetCodeCN.graphql dans node_modules/leetcode-query/lib/index.js:893 et suivez l'appel à LeetCodeCN.user à la ligne 665. Reproduisez l'exemple LeetCodeCN.user fourni et examinez la réponse HTTP 403 de leetcode.cn/graphql. C'est terminé lorsque la requête utilisateur n'échoue plus à cause du blocage Cloudflare signalé et que le comportement a été vérifié avec cet exemple.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Test code:
const credential = new Credential();
await credential.init("eyJhbGciOiJIUzI1NiIsInR5c...");
const leetcode = new LeetCodeCN(credential);
const user = await leetcode.user("guanpengchn");
console.log(user);
Response:
throw new Error(HTTP ${res.status} ${res.statusText}: ${await res.text()});
^
Error: HTTP 403 Forbidden: <title>Just a moment...</title><style>*{box-sizing:border-box;margin:0;padding:0}html{line-height:1.15;-webkit-text-size-adjust:100%;color:#313131;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}body{display:flex;flex-direction:column;height:100vh;min-height:100vh}.main-content{margin:8rem auto;padding-left:1.5rem;max-width:60rem}@media (width <= 720px){.main-content{margin-top:4rem}}#challenge-error-text{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0IyMEYwMyIgZD0iTTE2IDNhMTMgMTMgMCAxIDAgMTMgMTNBMTMuMDE1IDEzLjAxNSAwIDAgMCAxNiAzbTAgMjRhMTEgMTEgMCAxIDEgMTEtMTEgMTEuMDEgMTEuMDEgMCAwIDEtMTEgMTEiLz48cGF0aCBmaWxsPSIjQjIwRjAzIiBkPSJNMTcuMDM4IDE4LjYxNUgxNC44N0wxNC41NjMgOS41aDIuNzgzem0tMS4wODQgMS40MjdxLjY2IDAgMS4wNTcuMzg4LjQwNy4zODkuNDA3Ljk5NCAwIC41OTYtLjQwNy45ODQtLjM5Ny4zOS0xLjA1Ny4zODktLjY1IDAtMS4wNTYtLjM4OS0uMzk4LS4zODktLjM5OC0uOTg0IDAtLjU5Ny4zOTgtLjk4NS40MDYtLjM5NyAxLjA1Ni0uMzk3Ii8+PC9zdmc+");background-repeat:no-repeat;background-size:contain;padding-left:34px}</style>
Enable JavaScript and cookies to continue<script nonce="bGHAi6sj1zpODY2GWFcq8w">(function(){window._cf_chl_opt = {cFPWv: 'g',cH: '9FajQWr7c_Hw31nz5d0pc1WFCuG6tLGDFMFPK9zWdxk-1777648321-1.2.1.1-3UtC7xmc2WejO3FeWGW28Vslugn4SKiIYt0jAYWqJ9pEG_V4UTRYfgWVlpo2_NNo',cITimeS: '1777648321',cN: 'bGHAi6sj1zpODY2GWFcq8w',cRay: '9f4fb8d6edc18f0c',cTplB: '0',cTplC:0,cTplO:0,cTplV:5,cType: 'managed',cUPMDTk:"/graphql/?__cf_chl_tk=xjtIHSukAPmH1H1qhE_IGbxbqJWOtt2POzbcxjQbtDs-1777648321-1.0.1.1-ImmMUmuWV583MTYtQ2vomZuXJPHCdmtCWmsplitWAdc",cvId: '3',cZone: 'leetcode.cn',fa:"/graphql/?_cf_chl_f_tk=xjtIHSukAPmH1H1qhE_IGbxbqJWOtt2POzbcxjQbtDs-1777648321-1.0.1.1-ImmMUmuWV583MTYtQ2vomZuXJPHCdmtCWmsplitWAdc",md: 'MW7rC7drmyWJGS1ULIpPEY4b_JODO02dGVNTrMQIKZw-1777648321-1.2.1.1-WknkrjoUgI5cG.7y4Y7qMuob_C26JjN9mlaiF.aBaF1YeHWhwiFE1SJn4a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hJtOucQPi9RWPHtJtahc.skb2r0iwX7CW_sy1CjCu6liKCqjHLzxApusXf0Bsv6YZH19eOyK8GOu.zbLUMG6WFVkDv5iViT0lNGhNCvx7kwB.lBtdtRgrVaaeLyb.Rcd54vQxyQmx0XPUYTjzKWUAtHIRM4',};var a = document.createElement('script');a.nonce = 'bGHAi6sj1zpODY2GWFcq8w';a.src = '/cdn-cgi/challenge-platform/h/g/orchestrate/chl_page/v1?ray=9f4fb8d6edc18f0c';window._cf_chl_opt.cOgUHash = location.hash === '' && location.href.indexOf('#') !== -1 ? '#' : location.hash;window._cf_chl_opt.cOgUQuery = location.search === '' && location.href.slice(0, location.href.length - window._cf_chl_opt.cOgUHash.length).indexOf('?') !== -1 ? '?' : location.search;if (window.history && window.history.replaceState) {var ogU = location.pathname + window._cf_chl_opt.cOgUQuery + window._cf_chl_opt.cOgUHash;history.replaceState(null, null,"/graphql/?__cf_chl_rt_tk=xjtIHSukAPmH1H1qhE_IGbxbqJWOtt2POzbcxjQbtDs-1777648321-1.0.1.1-ImmMUmuWV583MTYtQ2vomZuXJPHCdmtCWmsplitWAdc"+ window._cf_chl_opt.cOgUHash);a.onload = function() {history.replaceState(null, null, ogU);}}document.getElementsByTagName('head')[0].appendChild(a);}());</script>at LeetCodeCN.graphql (file:///home/jjean/node_modules/leetcode-query/lib/index.js:893:15)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async LeetCodeCN.user (file:///home/jjean/node_modules/leetcode-query/lib/index.js:665:22)
at async hello (file:///home/jjean/workspace/plla/diceserver/nodejs/frontend/bin/functions.mjs:935:18)
- Langage dominant
- TypeScript
- Étoiles
- 130
- Forks
- 22
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de JacobLinCool/LeetCode-Query
-
Submissions nullOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
JacobLinCool/LeetCode-Query#111 ·
-
Unable to get User InformationOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 25/100
JacobLinCool/LeetCode-Query#93 · 4 commentaires · 2 réactions ·
-
Dependency DashboardOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
Toutes les issues de JacobLinCool/LeetCode-Query
Issues similaires
-
skillopt: success-reflect prompt omits the edit schema, so every success-only edit is droppedOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Workspace secrets/constants containing "$" are corrupted when resolved in data source optionsOuvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
mobile-next/mobile-mcp#526 ·
Les mainteneurs répondent en général sous 1 jour
-
e2e-failure ready-to-code
Difficulté 1/5 Moins d'une heure Accessibilité débutants 73/100
redhat-developer/rhdh-plugin-export-overlays#4470 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour