serum-ts icon indicating copy to clipboard operation
serum-ts copied to clipboard

Error: 410 Gone

Open v0idum opened this issue 3 years ago • 3 comments

Getting this error when try to run this example https://github.com/project-serum/serum-ts/blob/master/packages/swap/examples/swap.js from swap package: Error: 410 Gone: {"jsonrpc":"2.0","error":{"code": 410, "message":"The RPC call or parameters have been disabled."}, "id": "3b56fc88-1bd6-4b12-86b1-42482f87a777" }

at ClientBrowser.callServer (/home/aven/WebstormProjects/serum-ts/packages/swap/node_modules/@solana/web3.js/lib/index.cjs.js:4423:18)
at processTicksAndRejections (internal/process/task_queues.js:95:5)

Screenshot from 2021-11-12 13-59-54

What is wrong?

v0idum avatar Nov 12 '21 09:11 v0idum

I'm seeing the same issue.

How to reproduce this issue with JSON-RPC: curl https://api.mainnet-beta.solana.com -X POST -H "Content-Type: application/json" -d ' {"jsonrpc":"2.0", "id":1, "method":"getProgramAccounts", "params":["9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin"]} '

The program ID is the Serum DEX V3 (see link below) https://explorer.solana.com/address/9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin/tokens

kinghchan avatar Nov 28 '21 20:11 kinghchan

Use this RPC: https://solana-api.projectserum.com to fix

phlqp avatar Jan 05 '22 08:01 phlqp

Note that getProgramAccounts is disabled for some RPC servers. Hence the error.

armaniferrante avatar Jan 05 '22 15:01 armaniferrante