Androz2091 / vinted-api

JavaScript library to interact with the Vinted API
81 stars 34 forks source link

Website currently unavailable #16

Open tidic84 opened 1 year ago

tidic84 commented 1 year ago

Bonjour, tout d'abord j'ai modifié l'api, j'ai remplacé le vinted.be par vinted.fr pour régler le problème de cookie puis j'ai cette erreur: (j'ai un peu raccourci)

node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "<!doctype html>
....
      <h1>Website currently unavailable</h1>

      <div class="site-content">
        <div class="cf-error-details cf-error-1020">
  <h1>Access denied</h1>
  <p>You cannot access www.vinted.fr. Refresh the page or contact the site owner to request access.</p>
  <ul class="cferror_details">
    <li>Ray ID: 75b3eae2c81a6333</li>
    <li>Timestamp: 2022-10-16 21:34:15 UTC</li>
    <li>Your IP address: ...</li>
    <li class="XXX_no_wrap_overflow_hidden">Requested URL: www.vinted.fr/api/v2/catalog/items?search_text=pantalon </li>
    <li>Error reference number: 1020</li>
    <li>Server ID: FL_415F66</li>
    <li>User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6,2 Safari/605.1.15</li>
  </ul>
</div>

      </div>
    </div>

    <div class="site-footer">
      &copy; Vinted.com
    </div>
  </div>
ney-web commented 1 year ago

laisse le domaine tel qu'il est (.be), ou bien change le par .com

tidic84 commented 1 year ago

laisse le domaine tel qu'il est (.be), ou bien change le par .com

Que je le mette en .be ou .com ça me met cookie invalide

PS: Et j'ai bien changé le "+ cookie" en "+ c" mais rien n'y fait, aucun des deux marchent.

5-30 commented 1 year ago

laisse le domaine tel qu'il est (.be), ou bien change le par .com

Que je le mette en .be ou .com ça me met cookie invalide

PS: Et j'ai bien changé le "+ cookie" en "+ c" mais rien n'y fait, aucun des deux marchent.

Salut, même problème pour moi :/ Il y a du nouveau ?

Emma59000 commented 1 year ago

Salut, avez vous des nouvelles ?

ney-web commented 1 year ago

Suffit d’utiliser un interval pour rafraîchir à chaque fois :

setInterval(() => {
    vinted.search(/* ton url */) 
}, 5000) 

Et normalement tu n’auras plus le problème de cookie ^^

ney-web commented 1 year ago

Ah oui aussi j’oubliais dans ton code, ajoute ça au début :

vinted.fetchCookie()
Emma59000 commented 1 year ago

D'accord, j'essaye cela dès que je rentre chez moi

ney-web commented 1 year ago

Pas de soucis

Emma59000 commented 1 year ago

C'est parfait cela fonctionne, je te remercie grandement. Maintenant j'ai juste un problème de "request rate limit exeeded"

ney-web commented 1 year ago

Fais voir ton code ?

Le mar. 13 déc. 2022 à 17:22, Emma59000 @.***> a écrit :

C'est parfait cela fonctionne, je te remercie grandement. Maintenant j'ai juste un problème de "request rate limit exeeded"

— Reply to this email directly, view it on GitHub https://github.com/Androz2091/vinted-api/issues/16#issuecomment-1348977537, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT5H6BYTEK2SSXNVI5LVMLTWNCPFDANCNFSM6AAAAAARGQTZTA . You are receiving this because you commented.Message ID: @.***>

ney-web commented 1 year ago

Fais voir ton code ?

Emma59000 commented 1 year ago

Tu aurais discord ? Sa serez plus simple pour en parlez si sa te dérange pas ? Le miens c'est : Emma Smith#8875

Vattory commented 1 year ago

Fais voir ton code ?

Salut y'a moyen de mieux m'expliquer sur mon discord Vattory#7909 ?