Comments (12)
I am located in the Netherlands. But with VPN I had the same results from Germany, Belgium, Sweden and US.
from ikea-availability-checker.
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.
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.
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.
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.
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.
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.
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.
True, right now I don’t have any idea why that happens. Thanks for checking and giving such valuable feedback!
from ikea-availability-checker.
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.
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.
Thanks!
from ikea-availability-checker.
Related Issues (20)
- 403 for all request to US stores HOT 15
- undefined "stock" in alpha version HOT 1
- undefined store for fr country HOT 3
- ERR_HTTP_403 with pl country HOT 4
- Error "ERR_HTTP_403" on 2.0.0-alpha.1 version HOT 10
- The automated release is failing 🚨
- The automated release is failing 🚨 HOT 2
- Help HOT 1
- smoke test for all countries HOT 1
- recurring smoke test (cron) HOT 7
- get stores from meta files HOT 7
- get list of countries from JS file
- bug: ERR_HTTP_403 on country KR using npx HOT 1
- bug: France store 518 metadata fix HOT 1
- Typescript support HOT 1
- Wrong Coordinates for store in Karlsruhe HOT 1
- SyntaxError: Unexpected token '.' HOT 3
- 403 for all request to BE stores HOT 6
- Szczecin store not visible in the software HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ikea-availability-checker.