Closed sswadkar closed 3 years ago
I have the same problem. My program worked about a month ago but now I get "Response code 403 (Forbidden)"
I have the same problem.
Fixed in update 1.1.0, please download the new version and try again.
Fixed in update 1.1.0, please download the new version and try again. @matthew1232 I am having trouble with running the API, ` const StockXAPI = require('stockx-api'); const stockX = new StockXAPI();
stockX.fetchProductDetails('https://stockx.com/adidas-yeezy-boost-700-magnet')
.then(product => console.log(product))
.catch(err => console.log(Error scraping product details: ${err.message}
));
`
Ran this snippet and met with the following error:
Error scraping product details: Status code: 403 - body: ../node_modules/stockx-api/src/utils/../../test/body.txt Failed to write body: Error: ENOENT: no such file or directory, open '../node_modules/stockx-api/src/utils/../../test/body.txt'
I just started using this API and wasn't able to scrape for product details.
I ran this snippet of code (yes I changed the user and password) and was able to successfully login.
Unfortunately, I was met with this output
Then I tried running this snippet of code
And was met with this output
I'm not sure if this is an error on my side, if there's some additional configuration I forgot to do or if it's an issue for multiple people (a similar issue from 2020 to this was unanswered).