-
Notifications
You must be signed in to change notification settings - Fork 58
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
AxiosError: Request failed with status code 400 #53
Comments
if you can open on your local machine browser means api status is okay, it might cause by exceed rate limits? |
The thing is in this example code, I always do 2 api calls (getRpcPoolInfos and ), no matter who goes first fetchPoolByMints always fail. I have nothing else running on the local machine, so the chances of exceed rate limit feels low. |
tried multiple times and everything goes well, skd version: 0.1.81-alpha
|
I just ran your code on my local machine and got the same error. ` /Users/john/code/solana/solana-samples/node_modules/axios/lib/core/settle.js:19 Would you look at this AxiosError and share some knowledge about it? I haven't used this Axios lib before, i don't see it in the package.json. Could it be a version mismatch? |
I can't see any clue in this error code, maybe you can use familiar api call function to call this api, url definition is here. |
More infomation about the error
|
I am running basically the same code as the examples, but some of the request will successfully return data but some will fail. This is the code I have:
I am using the same initSdk as in the exsample.
Error message:
The linke (https://api-v3.raydium.io/pools/info/mint?mint1=2qEHjDLDLbuBgRYvsxhc5D6uDWAivNFZGan56P1tpump&mint2=So11111111111111111111111111111111111111112&poolType=all&poolSortField=default&sortType=desc&pageSize=100&page=1) can be opened on my local machine browser.
Running macos 14.2.1
Node.js: v22.8.0
The text was updated successfully, but these errors were encountered: