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

ReferenceError: fetch is not defined #24

Open
volo723 opened this issue Jan 29, 2024 · 1 comment
Open

ReferenceError: fetch is not defined #24

volo723 opened this issue Jan 29, 2024 · 1 comment

Comments

@volo723
Copy link

volo723 commented Jan 29, 2024

npm install, npm test or start

image

installed node-fetch, @types/node-fetch.

But same error, How to fix this?

@anhtuan96a8
Copy link

`const quoteResponse = await (
await fetch('https://quote-api.jup.ag/v6/quote?inputMint=So11111111111111111111111111111111111111112\
&outputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
&amount=100000000
&slippageBps=50'
)
).json();

console.log(quoteResponse);`

{ error: 'Query parameter inputMint cannot be parsed: WrongSize' }
what's wrong? i don't know why

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