node-ic0 icon indicating copy to clipboard operation
node-ic0 copied to clipboard

Custom secion candid:service not found

Open janusdotai opened this issue 2 years ago • 0 comments

Greetings,

I'm using this great library to query the ICP ledger (mainnet) for a transaction. The call is:

dfx canister --network=ic call ockk2-xaaaa-aaaai-aaaua-cai block '(XXXXXX:nat64)'

where XXXXX is the 'height' returned from a transaction done through plug wallet. This returns fine from the command line and it works using node-IC but I see a bunch of error's in the console from POST 404's from the lib

POST https://icp-api.io/api/v2/canister/ockk2-xaaaa-aaaai-aaaua-cai/read_state 404

Server returned an error: Code: 404 () Body: Custom section candid:service not found. Retrying request.

Eventually the result comes back successfully .. just wondering what these POST requests are? I'm not using any candid / did files for the ledger schema, just calling the one method "block"

The canister being called is:

https://icscan.io/canister/ockk2-xaaaa-aaaai-aaaua-cai

method: Block

Errors:

Capture Capture1

janusdotai avatar Jun 01 '23 14:06 janusdotai