You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const handleSearch = () => {
// Fetch the product information from the backend
axios.get(`http://localhost:8000/api/product?sneakerName=${sneakerName}`)
.then((response) => {
// Store the product information in the component's state
setProduct(response.data);
})
.catch((error) => {
console.log('Error:', error);
});
};
console.log in server:
Error: Could not connect to StockX while searching '
at Object.getProductsAndInfo (/Users/tyler/Desktop/code/codingDojo/PA/sneakerverse/server/node_modules/sneaks-api/scrapers/stockx-scraper.js:62:23)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
null
Seems it is hanging on StockX and not searching the other website. It woks fine in my backend as per npm website instructions but I want to implement front end functionality
The text was updated successfully, but these errors were encountered:
Unfortunately, StockX has deprecated this API version so it has broken this code. Hopefully there will be an alternative solution discovered or StockX will give access to a public API.
server.js:
react component:
console.log in server:
Seems it is hanging on StockX and not searching the other website. It woks fine in my backend as per npm website instructions but I want to implement front end functionality
The text was updated successfully, but these errors were encountered: