Giter Site home page Giter Site logo

Comments (12)

SemicolonStruggles avatar SemicolonStruggles commented on June 22, 2024 1

I am located in the Netherlands. But with VPN I had the same results from Germany, Belgium, Sweden and US.

from ikea-availability-checker.

SemicolonStruggles avatar SemicolonStruggles commented on June 22, 2024 1

Yes I noticed that too. It's weird though, because I would expect a client ID to be unique to each client. That does not seem to be the case. Since your code contains the same client ID as the one that I get assigned by the IKEA Netherlands website it seems they use the same client ID for entire countries.

It does seem unlikely though that the 403 are a result of rate limiting, that would mean that a whole (or multiple) country would not be able to access Ikea stock info. Will give it a try though if it happens again.

from ikea-availability-checker.

SemicolonStruggles avatar SemicolonStruggles commented on June 22, 2024

Upon looking at the code the deprecation probability seems to indicate that the API itself is being deprecated, so nothing that can be done about that I suppose.

from ikea-availability-checker.

Ephigenia avatar Ephigenia commented on June 22, 2024

Yes, that seems to be an issue from time to time. I don’t have an idea why this is happening. (It works for me though). I started to add a smoketest script that runs a query for almost all countries: https://github.com/Ephigenia/ikea-availability-checker/runs/8292506603

from ikea-availability-checker.

SemicolonStruggles avatar SemicolonStruggles commented on June 22, 2024

It suddenly started working for me now. No idea why. I did try both with and without VPN because in the code I saw you were using the US client ID. I suspected the US client ID would only be valid from US IPs. However, I didn't seem to work anyways. Then I turned the VPN back of and suddenly it started working. Coincidence I am guessing as that doesn't make sense.

Other than that I did install the package globally on my system in the mean time. But again, I can't see how that would matter as npx should have identical results.

I've locally added a console.log to your code so I can see the full error, should the 403 issue occur again. Hopefully I'll be able to provide some more info, should it stop working again.

from ikea-availability-checker.

Ephigenia avatar Ephigenia commented on June 22, 2024

Thank you for your support. The experience you described matches with the other ones having the same issues. It started working for some time and then it failed again. In which country are you located?

from ikea-availability-checker.

Ephigenia avatar Ephigenia commented on June 22, 2024

Okay, so then it doesn’t seem to be a country issue then. I wonder if maybe some of the client ids hit a rate limit or something that doesn’t get reported but returns just a 403.

from ikea-availability-checker.

Ephigenia avatar Ephigenia commented on June 22, 2024

Btw, the ingka.js file contains two other Client IDs found in the Italian and Dutch website. Maybe next time you hit the error you could try using one of those maybe? (https://github.com/Ephigenia/ikea-availability-checker/blob/alpha/source/lib/ingka.js#L25)

from ikea-availability-checker.

Ephigenia avatar Ephigenia commented on June 22, 2024

True, right now I don’t have any idea why that happens. Thanks for checking and giving such valuable feedback!

from ikea-availability-checker.

Ephigenia avatar Ephigenia commented on June 22, 2024

Just in case you want to dig deeper, I’ve created a postman collection with the request beeing made: https://www.postman.com/crimson-rocket-271330/workspace/ikea/overview

from ikea-availability-checker.

SemicolonStruggles avatar SemicolonStruggles commented on June 22, 2024

Already stole the endpoint from the chrome network debugger, but thanks anyways :) Will keep you posted if I come across more details regarding the error.

from ikea-availability-checker.

Ephigenia avatar Ephigenia commented on June 22, 2024

Thanks!

from ikea-availability-checker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.