Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data access usage is incorrect #14

Open
vunsh opened this issue Jul 29, 2023 · 1 comment
Open

data access usage is incorrect #14

vunsh opened this issue Jul 29, 2023 · 1 comment

Comments

@vunsh
Copy link

vunsh commented Jul 29, 2023

        const sclient = new StockxClient()
        const products = await sclient.search({
            query: "panda"
        });
        
        const firstResult = products[0];

        console.log(firstResult)

causing error:

return response.data.data.browse.results.edges.map((e) => new StockxProduct_1.StockxProduct(this, { ^ TypeError: Cannot read properties of undefined (reading 'browse')

Already tried changing the query several times, same result

@iyarsius
Copy link
Owner

Hi, it's probably cause request has been rejected for any reason, i'll push some update soon and this error should be solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants