oxheadalpha / nft-tutorial

Tezos FA2 NFT CLI Tool And Tutorial
MIT License
92 stars 25 forks source link

nft origination error #91

Closed soylentextra closed 7 months ago

soylentextra commented 7 months ago

Getting the following error trying to create a collection on ghostnet:

nft origination error { "method": "GET", "url": "https://rpc.ghostnet.teztnets.xyz/chains/main/blocks/head/context/constants", "cause": { "message": "request to https://rpc.ghostnet.teztnets.xyz/chains/main/blocks/head/context/constants failed, reason: getaddrinfo ENOTFOUND rpc.ghostnet.teztnets.xyz", "type": "system", "errno": "ENOTFOUND", "code": "ENOTFOUND" }, "name": "HttpRequestFailed", "message": "GET https://rpc.ghostnet.teztnets.xyz/chains/main/blocks/head/context/constants FetchError: request to https://rpc.ghostnet.teztnets.xyz/chains/main/blocks/head/context/constants failed, reason: getaddrinfo ENOTFOUND rpc.ghostnet.teztnets.xyz" } GET https://rpc.ghostnet.teztnets.xyz/chains/main/blocks/head/context/constants FetchError: request to https://rpc.ghostnet.teztnets.xyz/chains/main/blocks/head/context/constants failed, reason: getaddrinfo ENOTFOUND rpc.ghostnet.teztnets.xyz

emishur commented 7 months ago

Most likely Tezos node you are trying to connect is temporary unavailable. Try to connect to a different node.

soylentextra commented 7 months ago

How do I change nodes with tznft? Using the set-network command doesn't seem to allow swapping ghostnet nodes.

emishur commented 7 months ago

How do I change nodes with tznft? Using the set-network command doesn't seem to allow swapping ghostnet nodes.

there is no CLI command, but you can manually edit generated tznft.json config file. You need to either update "providerUrl" value for "testnet" json object or alternatively copy and rename "test" node and change "providerUrl".

tznft should be able to see new networks added to tznft.json file.

soylentextra commented 7 months ago

Worked great, thank you!