matthew1232 / stockx-api

Easy access to StockX's unofficial API through promises.
172 stars 67 forks source link

Error scraping product details #11

Closed KashifRizwan007 closed 3 years ago

KashifRizwan007 commented 4 years ago

Unexpected token < in JSON at position 0

Tried numerous times but can't get it to work.

alexchiriac commented 4 years ago

Hi @KashifRizwan007 ! If you're still looking for a fix I've answered with my own solution under issue #12

matthew1232 commented 4 years ago

If you are still having this issue, I just updated to 1.0.7 with http2 support to searchProducts and fetchProductDetails, along with a newSearchProducts method that doesn't have to pass PerimeterX to my knowledge. All tests passed on my computer with the updates. Please let me know if 1.0.7 solves the problem 🤞