nft-snapshot icon indicating copy to clipboard operation
nft-snapshot copied to clipboard

Hello, sir. Please teach me how to solve this.

Open uparupaNFT opened this issue 2 years ago • 7 comments

Token 2 Error: Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.6.1) at Logger.makeError (C:\Users\82103\Desktop\nft-snapshot\nft-snapshot-main\node_modules@ethersproject\logger\lib\index.js:233:21) at Logger.throwError (C:\Users\82103\Desktop\nft-snapshot\nft-snapshot-main\node_modules@ethersproject\logger\lib\index.js:242:20) at JsonRpcProvider. (C:\Users\82103\Desktop\nft-snapshot\nft-snapshot-main\node_modules@ethersproject\providers\lib\json-rpc-provider.js:517:54) at step (C:\Users\82103\Desktop\nft-snapshot\nft-snapshot-main\node_modules@ethersproject\providers\lib\json-rpc-provider.js:48:23) at Object.throw (C:\Users\82103\Desktop\nft-snapshot\nft-snapshot-main\node_modules@ethersproject\providers\lib\json-rpc-provider.js:29:53) at rejected (C:\Users\82103\Desktop\nft-snapshot\nft-snapshot-main\node_modules@ethersproject\providers\lib\json-rpc-provider.js:21:65) at processTicksAndRejections (node:internal/process/task_queues:96:5) { reason: 'could not detect network', code: 'NETWORK_ERROR', event: 'noNetwork' }

uparupaNFT avatar Mar 20 '22 02:03 uparupaNFT

What chain ID are you using?

On Sat, Mar 19, 2022 at 9:03 PM uparupaNFT @.***> wrote:

Token 2 Error: Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.6.1) at Logger.makeError @.*** \logger\lib\index.js:233:21) at Logger.throwError @.*** \logger\lib\index.js:242:20) at JsonRpcProvider. @.*** \providers\lib\json-rpc-provider.js:517:54) at step @.*** \providers\lib\json-rpc-provider.js:48:23) at Object.throw @.*** \providers\lib\json-rpc-provider.js:29:53) at rejected @.*** \providers\lib\json-rpc-provider.js:21:65) at processTicksAndRejections (node:internal/process/task_queues:96:5) { reason: 'could not detect network', code: 'NETWORK_ERROR', event: 'noNetwork' }

— Reply to this email directly, view it on GitHub https://github.com/zobront/nft-snapshot/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABL3ULF522MVFH4LF5IQFPLVA2BQHANCNFSM5REZ5GCA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

zobront avatar Mar 20 '22 02:03 zobront

Hello im using polygon chain, number 137! ​ -----Original Message----- From: "Zach @.> To: @.>; Cc: @.>; @.>; Sent: 2022-03-20 (일) 11:29:21 (GMT+09:00) Subject: Re: [zobront/nft-snapshot] Hello, sir. Please teach me how to solve this. (Issue #2)

What chain ID are you using?

On Sat, Mar 19, 2022 at 9:03 PM uparupaNFT @.***> wrote:

Token 2 Error: Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.6.1) at Logger.makeError @.*** \logger\lib\index.js:233:21) at Logger.throwError @.*** \logger\lib\index.js:242:20) at JsonRpcProvider. @.*** \providers\lib\json-rpc-provider.js:517:54) at step @.*** \providers\lib\json-rpc-provider.js:48:23) at Object.throw @.*** \providers\lib\json-rpc-provider.js:29:53) at rejected @.*** \providers\lib\json-rpc-provider.js:21:65) at processTicksAndRejections (node:internal/process/task_queues:96:5) { reason: 'could not detect network', code: 'NETWORK_ERROR', event: 'noNetwork' }

— Reply to this email directly, view it on GitHub https://github.com/zobront/nft-snapshot/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABL3ULF522MVFH4LF5IQFPLVA2BQHANCNFSM5REZ5GCA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***> ​

uparupaNFT avatar Mar 20 '22 02:03 uparupaNFT

Is your provider endpoint from Infura / Alchemy set up for Polygon?

If you share your code I can take a look.

zobront avatar Mar 21 '22 19:03 zobront

Sorry for late reply. i used alchemy, and puted http adress in visual studio program. please check my image. do i have to insert websockets? thank you!

-----Original Message----- From: "Zach @.> To: @.>; Cc: @.>; @.>; Sent: 2022-03-22 (화) 04:24:49 (GMT+09:00) Subject: Re: [zobront/nft-snapshot] Hello, sir. Please teach me how to solve this. (Issue #2)

Is your provider endpoint from Infura / Alchemy set up for Polygon? If you share your code I can take a look. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

uparupaNFT avatar Mar 22 '22 12:03 uparupaNFT

tried with eth mainnet

-----Original Message----- From: "Zach @.> To: @.>; Cc: @.>; @.>; Sent: 2022-03-22 (화) 04:24:49 (GMT+09:00) Subject: Re: [zobront/nft-snapshot] Hello, sir. Please teach me how to solve this. (Issue #2)

Is your provider endpoint from Infura / Alchemy set up for Polygon? If you share your code I can take a look. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

uparupaNFT avatar Mar 22 '22 12:03 uparupaNFT

No image attached. You just put the HTTP link from Alchemy as the PROVIDER_ENDPOINT. If you send the code I can help, but otherwise I'll close this.

zobront avatar Mar 22 '22 19:03 zobront

const ethers = require("ethers") const createCsvWriter = require('csv-writer').createObjectCsvWriter;

const TOKEN_ADDRESS = "0x2953399124F0cBB46d2CbACD8A89cF0599974963"; // INSERT const STARTING_TOKEN_ID = 1; const HIGHEST_TOKEN_ID = 1000; // INSERT const PROVIDER_ENDPOINT = "https://eth-mainnet.alchemyapi.io/v2/74WTJvHjOrUwehy7SsSwVkvWtITCITET"; // INSERT const CHAIN_ID = 137; const FORMAT = "tokensByOwner"; // options: "tokensByOwner" or "ownerByTokenId"

const provider = new ethers.providers.JsonRpcProvider(PROVIDER_ENDPOINT, CHAIN_ID); const abi = ["function ownerOf (uint256) view returns (address)"]; const contract = new ethers.Contract(TOKEN_ADDRESS, abi, provider);

Token 27 Error: Error: underlying network changed (event="changed", network={"name":"matic","chainId":137,"ensAddress":null,"_defaultProvider":null}, detectedNetwork={"name":"homestead","chainId":1,"ensAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"}, code=NETWORK_ERROR, version=providers/5.6.1) at Logger.makeError @.\logger\lib\index.js:233:21) at JsonRpcProvider. @.\providers\lib\base-provider.js:1175:40) at step @.\providers\lib\base-provider.js:48:23) at Object.next @.\providers\lib\base-provider.js:29:53) at fulfilled @.***\providers\lib\base-provider.js:20:58) at processTicksAndRejections (node:internal/process/task_queues:96:5) { reason: 'underlying network changed', code: 'NETWORK_ERROR', event: 'changed', network: { name: 'matic', chainId: 137, ensAddress: null, _defaultProvider: null }, detectedNetwork: { name: 'homestead', chainId: 1, ensAddress: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', _defaultProvider: [Function: func] { renetwork: [Function (anonymous)] } } }

This is when i used eth mainnet http

const ethers = require("ethers") const createCsvWriter = require('csv-writer').createObjectCsvWriter;

const TOKEN_ADDRESS = "0x2953399124F0cBB46d2CbACD8A89cF0599974963"; // INSERT const STARTING_TOKEN_ID = 1; const HIGHEST_TOKEN_ID = 1000; // INSERT const PROVIDER_ENDPOINT = "https://polygon-mainnet.g.alchemy.com/v2/dOCze8XbPcPgWLRJ5SANtPzyFPWsyaZT"; // INSERT const CHAIN_ID = 137; const FORMAT = "tokensByOwner"; // options: "tokensByOwner" or "ownerByTokenId" Token 3 Error: Error: missing revert data in call exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (error={"reason":"processing response error","code":"SERVER_ERROR","body":"{"jsonrpc":"2.0","id":47,"error":{"code":-32000,"message":"execution reverted"}}","error":{"code":-32000},"requestBody":"{"method":"eth_call","params":[{"to":"0x2953399124f0cbb46d2cbacd8a89cf0599974963","data":"0x6352211e0000000000000000000000000000000000000000000000000000000000000003"},"latest"],"id":47,"jsonrpc":"2.0"}","requestMethod":"POST","url":"https://polygon-mainnet.g.alchemy.com/v2/dOCze8XbPcPgWLRJ5SANtPzyFPWsyaZT"}, data="0x", code=CALL_EXCEPTION, version=providers/5.6.1) at Logger.makeError @.\logger\lib\index.js:233:21) at Logger.throwError @.\logger\lib\index.js:242:20) at checkError @.\providers\lib\json-rpc-provider.js:76:16)
at JsonRpcProvider. @.
\providers\lib\json-rpc-provider.js:659:47) at step @.\providers\lib\json-rpc-provider.js:48:23) at Object.throw @.\providers\lib\json-rpc-provider.js:29:53)
at rejected @.\providers\lib\json-rpc-provider.js:21:65) at processTicksAndRejections (node:internal/process/task_queues:96:5) { reason: 'missing revert data in call exception', code: 'CALL_EXCEPTION', error: Error: processing response error (body="{"jsonrpc":"2.0","id":47,"error":{"code":-32000,"message":"execution reverted"}}", error={"code":-32000}, requestBody="{"method":"eth_call","params":[{"to":"0x2953399124f0cbb46d2cbacd8a89cf0599974963","data":"0x6352211e0000000000000000000000000000000000000000000000000000000000000003"},"latest"],"id":47,"jsonrpc":"2.0"}", requestMethod="POST", url="https://polygon-mainnet.g.alchemy.com/v2/dOCze8XbPcPgWLRJ5SANtPzyFPWsyaZT", code=SERVER_ERROR, version=web/5.6.0) at Logger.makeError @.\logger\lib\index.js:233:21) at Logger.throwError @.\logger\lib\index.js:242:20) at @.\web\lib\index.js:305:32 at step @.\web\lib\index.js:33:23) at Object.next @.\web\lib\index.js:14:53) at fulfilled @.\web\lib\index.js:5:58) at processTicksAndRejections (node:internal/process/task_queues:96:5) { reason: 'processing response error', code: 'SERVER_ERROR', body: '{"jsonrpc":"2.0","id":47,"error":{"code":-32000,"message":"execution reverted"}}', error: Error: execution reverted at getResult @.\providers\lib\json-rpc-provider.js:142:21)
at processJsonFunc @.\web\lib\index.js:348:22) at @.\web\lib\index.js:280:46 at step @.\web\lib\index.js:33:23) at Object.next @.\web\lib\index.js:14:53) at fulfilled @.\web\lib\index.js:5:58) at processTicksAndRejections (node:internal/process/task_queues:96:5) { code: -32000, data: undefined }, requestBody: '{"method":"eth_call","params":[{"to":"0x2953399124f0cbb46d2cbacd8a89cf0599974963","data":"0x6352211e0000000000000000000000000000000000000000000000000000000000000003"},"latest"],"id":47,"jsonrpc":"2.0"}', requestMethod: 'POST', url: 'https://polygon-mainnet.g.alchemy.com/v2/dOCze8XbPcPgWLRJ5SANtPzyFPWsyaZT' }, data: '0x' } This is when i used polygon mainnet http -----Original Message----- From: "Zach @.> To: @.>; Cc: @.>; @.***>; Sent: 2022-03-23 (수) 04:50:37 (GMT+09:00) Subject: Re: [zobront/nft-snapshot] Hello, sir. Please teach me how to solve this. (Issue #2)

No image attached. You just put the HTTP link from Alchemy as the PROVIDER_ENDPOINT. If you send the code I can help, but otherwise I'll close this. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

uparupaNFT avatar Oct 11 '22 07:10 uparupaNFT