Skip to content
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

Error getting nodes from mirror for file 0.0.102 during attempt 0 #1342

Closed
SimiHunjan opened this issue Nov 30, 2022 · 15 comments · Fixed by #1359
Closed

Error getting nodes from mirror for file 0.0.102 during attempt 0 #1342

SimiHunjan opened this issue Nov 30, 2022 · 15 comments · Fixed by #1359
Assignees
Labels
bug Something isn't working
Milestone

Comments

@SimiHunjan
Copy link
Contributor

Description

We’re seeing a “Error getting nodes from mirror for file 0.0.102 during attempt 0. Waiting 250 ms before next attempt: Stream refused by server” from the js SDK in previewnet HashIO.

Steps to reproduce

Additional context

No response

Hedera network

previewnet

Version

v2.18

Operating system

No response

@SimiHunjan SimiHunjan added the bug Something isn't working label Nov 30, 2022
@SimiHunjan
Copy link
Contributor Author

i'm able to reproduce this with a local relay version and 2.18.6.
I tried to bump the SDK to 2.19.0 to see
The issue still occurs but i get this extra set of log outputs
ERROR: {
code: 14,
details: 'Stream refused by server',
metadata: Metadata { internalRepr: Map(0) {}, options: {} }
}
ERRORED, but CLIENT CLOSE IS false

@ochikov ochikov self-assigned this Dec 1, 2022
@ochikov
Copy link
Contributor

ochikov commented Dec 1, 2022

I am able to reproduce this issue which is connected to an error in getting the address book. It is reproduced in HashIO because the SDK is a dependency library, but the problem is not in HashIO. We are further investigating why sometimes the call for Addressbook query does not succeed.

@ochikov
Copy link
Contributor

ochikov commented Dec 1, 2022

Hello @SimiHunjan and @Nana-EC,
I've played a little bit with the preview net GRPC mirror node for getting the nodes. Below are my considerations:

  1. I've started a client through the SDK and I've performed 1000 AccountBalanceQuery transactions, as each transaction is executed every second (1 second). For this client, we are doing every 10 seconds AddressBookQuery request in order to update the book with the nodes from the mirror node (this is a configuration into the SDK). Randomly some of those requests are failing with the error that you have already seen. I've done some research and what I come across is the following statement:
    The server may refuse to serve new requests if it is already handling too many other requests. This is normal behavior. Your client code will need to be able to recover from that error.
    We've got such kind of recovery mechanism. If the request fails, we are trying to fetch it again after a random time.

  2. I start to think that in the SDK, we are doing something wrong, so I've used grpcurl library to perform grpc requests from the console. Then I used to do a request every 10 seconds to get the address book with the following command:
    while sleep 10; do grpcurl -plaintext -d '{"file_id": {"fileNum": 102}, "limit": 0}' hcs.previewnet.mirrornode.hedera.com:5600 com.hedera.mirror.api.proto.NetworkService/getNodes; done
    Again randomly, some of the requests were failing with the following error:
    Code: Unavailable Message: unexpected HTTP status code received from server: 429 (Too Many Requests); transport: received unexpected content-type "text/plain; charset=utf-8"

  3. Then I changed the period for getting the nodes for updating the address book into the SDK from 10 seconds to 20 seconds and again apply the previous scenario with the 1000 AccountBalanceQuery transactions. This time, every single request for updating the address book went through without errors.

  4. Then I've also run the following command for fetching manually the nodes through the console, but this time with 20 seconds period between each request:
    while sleep 20; do grpcurl -plaintext -d '{"file_id": {"fileNum": 102}, "limit": 0}' hcs.previewnet.mirrornode.hedera.com:5600 com.hedera.mirror.api.proto.NetworkService/getNodes; done
    Every single request went through without any error.

So my consideration here is that we are doing a lot of requests to the Mirror Node (no matter if it is mainnet, testnet, or previewnet) and thus making it fail for some of them.

@steven-sheehy
Copy link
Member

steven-sheehy commented Dec 1, 2022

Why are we updating the address book every 10s? It should be way less frequent. This generates a ton of traffic on the mirror node with no real value. I think it should be once per day, at most once per hour. Node additions (or other address book updates) are extremely rare.

@ochikov
Copy link
Contributor

ochikov commented Dec 2, 2022

Why are we updating the address book every 10s? It should be way less frequent. This generates a ton of traffic on the mirror node with no real value. I think it should be once per day, at most once per hour. Node additions (or other address book updates) are extremely rare.

I believe that the logic behind that is built because of healthy/unhealthy nodes. When a node is marked as unhealthy, and based on those 10 seconds for fetching the address book, as soon as the address book is fetched again, the healthy nodes are cleared and set up again and the unhealthy nodes are restarted (empty). So I believe this is created so we can monitor which nodes are healthy and which are not.

@mohsin-hedera
Copy link

I would agree with Steven here. SDK should have some logic where it polls for updated address book at lets say once every 6hrs OR if +30% of its known address book is unreachable. This feature is intended for Community Nodes and I do not see a need is foreseeable future where we would need to get this updated every 10sec.

@steven-sheehy
Copy link
Member

I would agree with Steven here. SDK should have some logic where it polls for updated address book at lets say once every 6hrs OR if +30% of its known address book is unreachable. This feature is intended for Community Nodes and I do not see a need is foreseeable future where we would need to get this updated every 10sec.

That sounds reasonable. I would just add that the OR if +30% of its known address book is unreachable should be done immediately the first time but not every 10s after that. Perhaps every 10 minutes or more. Especially since nodes become unreachable during upgrades and that would cause unnecessary spikes in mirror node requests.

@ochikov ochikov added this to the 2.19.1 milestone Dec 8, 2022
@teacoat
Copy link

teacoat commented Dec 11, 2022

This is also filling up my logs, will it break things or what is going on here exactly. I havent updated from 2.16.x because of this error since 2.17.

image

Neurone added a commit to Neurone/hedera-sdk-js that referenced this issue Dec 15, 2022
@Neurone Neurone mentioned this issue Dec 15, 2022
2 tasks
@Neurone
Copy link
Contributor

Neurone commented Dec 15, 2022

This seems related to the use of hcs.previewnet.mirrornode.hedera.com:5600 here, instead of previewnet.mirrornode.hedera.com:443. Fixing that solves the issue.

As a workaround waiting for the new version, you can set clientSDK.setMirrorNetwork("previewnet.mirrornode.hedera.com:443"); to force the SDK to use that address.

@ochikov
Copy link
Contributor

ochikov commented Dec 15, 2022

@teacoat We are working on fixing that. On which network do you get the error?
@Neurone I am not sure that this URL is working. I've tested it through grpcurl and it does not resolve.

Neurone added a commit to Neurone/hedera-sdk-js that referenced this issue Dec 15, 2022
@Neurone
Copy link
Contributor

Neurone commented Dec 16, 2022

@ochikov It works well for me, are you in a dedicated/enterprise network? I'm in my private home network, I tried also via VPN in different regions, and it works.

Here the results using grpcurl with both addresses and the resolution via nslookup.

❯ nslookup hcs.previewnet.mirrornode.hedera.com
Server:		192.168.2.1
Address:	192.168.2.1#53

Non-authoritative answer:
Name:	hcs.previewnet.mirrornode.hedera.com
Address: 34.134.1.150

❯ nslookup previewnet.mirrornode.hedera.com
Server:		192.168.2.1
Address:	192.168.2.1#53

Non-authoritative answer:
Name:	previewnet.mirrornode.hedera.com
Address: 35.186.250.160

❯ grpcurl -d '{"file_id": {"fileNum": 102}, "limit": 0}' hcs.previewnet.mirrornode.hedera.com:5600 com.hedera.mirror.api.proto.NetworkService/getNodes
Failed to dial target host "hcs.previewnet.mirrornode.hedera.com:5600": EOF

❯ grpcurl -d '{"file_id": {"fileNum": 102}, "limit": 0}' previewnet.mirrornode.hedera.com:443 com.hedera.mirror.api.proto.NetworkService/getNodes
{
  "RSA_PubKey": "308201a2300d06092a864886f70d01010105000382018f003082018a02820181009f1f8a121c2fd6c76fd508d3e429f0c64bcb44c82a70573552aadcad071569e721958f5a5d09f9587ffafcfbe5341a2f0114acae346ef3c90213d3436ebb27f4350c990c5c8c3f8e1e36707bc08d42560823e3f24e09a03ad0955a5098019629dd04b27b251dce055f3ddcb0a41d66f0941b0b87cdfe3498d46038ab5df06f62a5ade08598573a88c8f5860dc1492a6e186485a9b13250e6d17b80cd39c5c819109e73ca732db23ef8baa776ec85ce0091becb2edefbaa5ed3e5dbfbd1f885a4fa881af3f144a8a565853533d89393592086b2d1d362e45bfe1fb45683aba6c640979ad6b46877184726c6ebd58b2eae85c7cfe3fbabef5f6cced850034b3847206c2d678c361876026b8d351e002af5e0ffe6f5b1f295fdc2f469caa2d2381ea0b48ca987cc2c8e635e8b19ce5e172a93761a8d490a9a4518d7255880a14d77b7ba774892b92a40bb81362e34fc6d5178d9b30112934205cb77fb9a282427394564a8554ea47286a47f86239e75c94789ce98c99844782462944f613167d7b50203010001",
  "nodeAccountId": {
    "accountNum": "3"
  },
  "nodeCertHash": "ZmZkNmFkYTc0YTNhMzRhOTA0YmVhNDc2MDMwODZmOGJlZjNiNmJlMThhYmVkNDRjNGQ0MGUxMmZiMTMwYjk3YmQ2Yjg1NWFlYzVkMGI5MGIwYjhjNzM1NGQ1ZjNiMGU0",
  "serviceEndpoint": [
    {
      "ipAddressV4": "I+fQlA==",
      "port": 50211
    },
    {
      "ipAddressV4": "KHlAMA==",
      "port": 50211
    },
    {
      "ipAddressV4": "I+fQlA==",
      "port": 50212
    },
    {
      "ipAddressV4": "A9P4rA==",
      "port": 50212
    },
    {
      "ipAddressV4": "A9P4rA==",
      "port": 50211
    },
    {
      "ipAddressV4": "KHlAMA==",
      "port": 50212
    }
  ],
  "description": "Hosted by Hedera | East Coast, USA",
  "stake": "10"
}
{
  "RSA_PubKey": "308201a2300d06092a864886f70d01010105000382018f003082018a0282018100c557af579fa83501be899b28907765bfdfcd52ab432b0195a1f1ecd86fc00ab6c5509b0fdd97edd3cb5cea56a295f312abb550831dbf963f450118b4fcc6e22cf4676200ce9cc8edfbbf558dc69f024264ad7d3dab23bed2133c274e6934489155db1087f90370905c64185a6211dc742fb9a6909d82186947b277463dfb3ff0acd47eff12ead1f6972ef2c1203793c45e77575be4fa110c7e40fa8db9c6187d113f4704014179071abf59be7d2b0de82de4215dc25506b1c9c26e4917401c997506e377e6bf03b688727e7940fad69c5e0da3cd5cbd2be777350aea2d0d47e97a448c84be6ce134d64bee0985c29162f4c1e567cca93d06a3c1be8abce35b557fb77f4fe671a66dec790756d0e8818165f2bacaa891aae7ac7437fc7175b6eb6deb7472378751bb6bf9b0e1483f9668e9fdbd5604c39b14d9e2bedeec846a980d704d171e7ba4b7fcd1a30d945ca12f47a325d9398aa18f97066054d4d15fc8994e2debe73e9271d548683f61ea44fb25071e3518a78ed3eb37e71a0691f2670203010001",
  "nodeId": "1",
  "nodeAccountId": {
    "accountNum": "4"
  },
  "nodeCertHash": "ZjBkOTRhY2NmNmRmZjM3Mjg3NGM5ZGJkOGQ3OTkyZWIzMTdhZjUwMDFjYTQxOTZhYmEyNjU4MDljYjNkMjAwYmE5NjFhNTQzOGMzYTVlZDA1YzgzYmRmOWNkMTE1ZDIy",
  "serviceEndpoint": [
    {
      "ipAddressV4": "A4XVkg==",
      "port": 50212
    },
    {
      "ipAddressV4": "KEYLyg==",
      "port": 50212
    },
    {
      "ipAddressV4": "A4XVkg==",
      "port": 50211
    },
    {
      "ipAddressV4": "I8cPsQ==",
      "port": 50212
    },
    {
      "ipAddressV4": "KEYLyg==",
      "port": 50211
    },
    {
      "ipAddressV4": "I8cPsQ==",
      "port": 50211
    }
  ],
  "description": "Hosted by Hedera | East Coast, USA",
  "stake": "10"
}
{
  "RSA_PubKey": "308201a2300d06092a864886f70d01010105000382018f003082018a02820181009ba457b73305f04a91cc46b1b965c4e841751abc8b1415a0badfd1f32c2482386a22725eb7ec74dea21e50617d648ea5ac393741ab01b8efb321239b8d4fdb1dfbeb9e3f39aa46580dd045d18ca44d002c37ddb527cce4ddc32bfc73419671f4ca4464a3f2a84fc85c71acf0e5a89626df69a81474ed16529f801a8afa97e435c4e04a964a357527288843e58f0a05cf5153ee4507b2c68b3d7fb54ae6a95a959c87a12f630e95c7b1b3c3695e858662417926d76c16983faf61225038745907e9cf13d67c2acd503ca451c85933ac4118acc279801cb968349903145ced27629dd08916317093587a77c2205cfa52543b53c3b6ea15b84e3d2c30c1ed752a4633c36b25b9893ea02ad562eb9b7868b3b4f47f4a25e356064962ac7b25e582944f00d30798a262f9214d8c5e74d0a8376cc2d6ba64e18f5e4a40afac625062d2ca23cd2800708321d3834314f0e5844859232673a32e70ae0d711e310581bcdb14e87134694c6e0930f46b37b96d49a64573947331e7e507d9e56de5e6146f2f0203010001",
  "nodeId": "2",
  "nodeAccountId": {
    "accountNum": "5"
  },
  "nodeCertHash": "Y2E2NzhlYmNiZDNkYzg2NDhmN2VkMDNmYjU5ZjBlMjFhZjY3NTEzZWFlZTUxMzE4ZTZiNTQ5YmU1YWNlOTA2ZWRjMWZmYTI2ZDkzYTU3YWNlYzliZTc3ZjQwZWFlZWQ3",
  "serviceEndpoint": [
    {
      "ipAddressV4": "NA9pgg==",
      "port": 50212
    },
    {
      "ipAddressV4": "aCv4Pw==",
      "port": 50212
    },
    {
      "ipAddressV4": "I+HJww==",
      "port": 50212
    },
    {
      "ipAddressV4": "NA9pgg==",
      "port": 50211
    },
    {
      "ipAddressV4": "I+HJww==",
      "port": 50211
    },
    {
      "ipAddressV4": "aCv4Pw==",
      "port": 50211
    }
  ],
  "description": "Hosted by Hedera | Central, USA",
  "stake": "10"
}
{
  "RSA_PubKey": "308201a2300d06092a864886f70d01010105000382018f003082018a0282018100c42ccac5fbc691fbbebda87ffd1e75bdcd8922494cf44fdbccee49788521c378bf77db0934ec0d2183d7c51db66f864c11ab7de1ac3c4cfdc1f093a2d6f37e2b34cbe4c8131f9683ad42878c83d3554c645aa167bcfb064a83dc45c5b1158499f9d92587fff7abcd5f221cd8150548413000fa6e5659089b1dfd65766ea78eaedfca6b45455fd8ab5984dbe35e5795d2c635ea7974d43e8eae4febffe492e707b48b1b0fc6481ae9e09d39133009b7d26402e6e52e5e91b2b380d88f0be7fb4b303e70219785057aa94ce924c4926e916569286e86b3ba651ca2a0a63df4f6907fefe3483d93b4ce1d4d03c7142111375b2c2c51d4eb839e37af530b2cbd6f50d4cb36e27937170d9cddac0ace2cc24b804b0a27351cf830b76525e26dfb9dbf49a056624a76862494e7263d0d70cebae952943e55842f5cad13fcf60a2e6dcf7a1d533f3a5bb54ec21918c76e525ba29146675831e17e36c61fe85498828d09b762015412b2e527849baec1cffc77de4c294c550811e598ff24da15a34569dd0203010001",
  "nodeId": "3",
  "nodeAccountId": {
    "accountNum": "6"
  },
  "nodeCertHash": "MjQ3MWYzZmU4MTQwNjgxZmU5MTkxM2QyY2MwNjNmMDY1ZTQ0OTBhZTYyZmY1ZDU0OGE1YWJlMTMxZDJhZjk2Y2JlM2FjMjViYmUyNDM2NmNhNGY4ZjBlNzZjZjk0NWYz",
  "serviceEndpoint": [
    {
      "ipAddressV4": "NvEmAQ==",
      "port": 50211
    },
    {
      "ipAddressV4": "I/dthw==",
      "port": 50211
    },
    {
      "ipAddressV4": "DVgWLw==",
      "port": 50211
    },
    {
      "ipAddressV4": "NvEmAQ==",
      "port": 50212
    },
    {
      "ipAddressV4": "DVgWLw==",
      "port": 50212
    },
    {
      "ipAddressV4": "I/dthw==",
      "port": 50212
    }
  ],
  "description": "Hosted by Hedera | West Coast, USA",
  "stake": "10"
}
{
  "RSA_PubKey": "308201a2300d06092a864886f70d01010105000382018f003082018a0282018100902f0490a9b7f5d2cd1c0d96c6a6990f573b5f0eb5bdbba39661ef023092419344669969a68a4c7071d329990fb1792e9001cb5598ea71c2d6676824320ee4cabf1dd357ae7f2adbedc1b1b0a9d95623779b4c4c7b47c4787a16ee7188c7217177624a9264ab39c41f7ff0b45a89bda40c4ad07c4d596d5f09d7056bcb5a35f44f95a59c266e09892dcbe46ad51f2d2b3e991a8f6658e1f2cb94c773eb44c44e892d1e55c1076f1608319ee657e40f192967543ab42ab222386d17586e253748dabd025e50b50ae6050720e239d64ee6fb4507c0614dd4be7afdb1330890ff3a6e176527c3116af129a9ac5e336d9f601e7127a6d7d820ad2f902dac9b248668a1bab08d10342ea69a7097132ff7120cc64fcde7840c656ba1732ba95e9c36751175e4ec3d84a7e0d28842b41bbbbd6f28e46c3a6633e1827965c55820d50dae2b0465cc0d42e195b9d1532e6225eb998d6a49079a8a1cd4d0175de3c87f97614847b3cbb17aa34be820b7b3ad98ac3faef993a6778974782c0c4ae3fabbcc430203010001",
  "nodeId": "4",
  "nodeAccountId": {
    "accountNum": "7"
  },
  "nodeCertHash": "ZjM1Nzg3M2Q0MTE0YTFhZWYwM2FkYzZiYTY5ZWZhZjI2OTBlMjI3YWJjMTZhNmZjNmU1MDQ5YTYzZmJkOTY4ODAwNGIxNGU0NjNjMjBlMzg0MzZhM2EyNGQzMTgyZGQ4",
  "serviceEndpoint": [
    {
      "ipAddressV4": "I+tBMw==",
      "port": 50211
    },
    {
      "ipAddressV4": "NrEzfw==",
      "port": 50212
    },
    {
      "ipAddressV4": "I+tBMw==",
      "port": 50212
    },
    {
      "ipAddressV4": "DUCqKA==",
      "port": 50211
    },
    {
      "ipAddressV4": "DUCqKA==",
      "port": 50212
    },
    {
      "ipAddressV4": "NrEzfw==",
      "port": 50211
    }
  ],
  "description": "Hosted by Hedera | West Coast, USA",
  "stake": "10"
}
{
  "RSA_PubKey": "308201a2300d06092a864886f70d01010105000382018f003082018a028201810091d7dfff78f4efbe5890450c5bc9e3534bffadad93fb7afb15bc7bcf67d3d3b413bd99940dd82564ada04ab2e4edf0a1c0b8fb7e1a8092e9138e960be2cc68b5b97f57d281c5872e97a479fc848363160e3863b57b33e4869b185ace5e36bd43ae5fa678c9eb66f1f4014786826b2f8fa7e0060f4405c0a8f9da7205ff4683a243fa0f315f1afbb4a4d140d02234e4473fb92fcb38f3eb28c60cf7cbfb64e069c18086e4dd61938920ae0fd7c193e6e104e65b817ed9398e232237fdf08322c9cec09d4099272a7c015d22b4dcc969f6ea1f518902105df60092b55a41b4f32b957b57d84e5b223905e8698951733ea9f2e2461ec0d6522ee816d5850facfeb412cff9b99943a87dc0d046447ce93b97e16d73b96b4263962f81fcf9458e57577c780a6f1615aa7a12326738e269bb731f89e891622e577ea54420bf0ca46be6fc4f71cf2681ac0252aa885e13be672cd284590427dcd137cf311625e8bee3b08fdcaaf465b387ce7cb33816f2c14a6b99ac7d734318cfc59b7ed939bafef8790203010001",
  "nodeId": "5",
  "nodeAccountId": {
    "accountNum": "8"
  },
  "nodeCertHash": "NDkzMWE3ODIwMmQ1NWYxMGIzMTU3NTc4NWMzZjQzOWRiNjgxOWJkMTEwMDNkZjdiYzJjZTkyZTI5YTUxN2I3YzIxODgwZGViNGMwMTc5NTc0NGI1NzZjZDQzYjg0OThk",
  "serviceEndpoint": [
    {
      "ipAddressV4": "Imr3QQ==",
      "port": 50211
    },
    {
      "ipAddressV4": "I1NZqw==",
      "port": 50212
    },
    {
      "ipAddressV4": "Imr3QQ==",
      "port": 50212
    },
    {
      "ipAddressV4": "DU7owA==",
      "port": 50211
    },
    {
      "ipAddressV4": "DU7owA==",
      "port": 50212
    },
    {
      "ipAddressV4": "I1NZqw==",
      "port": 50211
    }
  ],
  "description": "Hosted by Hedera | West Coast, USA",
  "stake": "10"
}
{
  "RSA_PubKey": "308201a2300d06092a864886f70d01010105000382018f003082018a0282018100c6e18c8fbf4cd4eb104542cb20aaaa252d95f052f1086d581c44ad737bf6676c0c3f789af5265b8afb79b50912da84e0afcf7547cb1fff08d0527017eb6dc5cdf83b51969d44336a6387cd70b94bf4c9baf2029840e5f4f863d7081f0fa81e0863adedb8b89a5dac2bb552d6e7b9fba222ac28c57075538fc957992942d341fa2876e6b507e9ce7ed572e8cfda5defa364fdf8d8e23829a4ccbb478f11eee3b32ab85e072951c5d9420115fba327073494f43b5f6bebf84152e356e7b16ba764b7a3b52cb2734640163be1465e6d1fa4c6e6f66684a635c9a556aa7100dbe645df8f4c423ae45a08cb35b4bc187886e2299b5c0210a5fba3b9449f483ef94ed922e1e98c113be166b89c73582243135d442306abe5a71b77018ff335d6dd79542697b168238b96727fd1339b5f82a3b6a597d976037ae2506456c8b34e9fbf3bc32410441c4bfc8eba58597254efebfaa78809a5c8854729a5ba78ece19fc8407dd8894a6bc7844037d878cace6c152c2e89e8a64b068a6c237e09993be806890203010001",
  "nodeId": "6",
  "nodeAccountId": {
    "accountNum": "9"
  },
  "nodeCertHash": "NjRlMDk4NjE1YmY0MDVmN2VkNWE0MDEzNDQ2Yjg5YzQ4OGNmY2Q2YmIyNWE0YTY3NmRjNzdlZWExMWQzM2Q3MDI2ODJmMGE2OWE4MDMwZThjNTc3N2QwZTQyMjAzNzk5",
  "serviceEndpoint": [
    {
      "ipAddressV4": "MhIRXQ==",
      "port": 50212
    },
    {
      "ipAddressV4": "FJaIWQ==",
      "port": 50212
    },
    {
      "ipAddressV4": "FJaIWQ==",
      "port": 50211
    },
    {
      "ipAddressV4": "In0XMQ==",
      "port": 50212
    },
    {
      "ipAddressV4": "In0XMQ==",
      "port": 50211
    },
    {
      "ipAddressV4": "MhIRXQ==",
      "port": 50211
    }
  ],
  "description": "Hosted by Hedera | West Coast, USA",
  "stake": "10"
}
❯ grpcurl -d '{"file_id": {"fileNum": 102}, "limit": 0}' previewnet.mirrornode.hedera.com:443 com.hedera.mirror.api.proto.NetworkService/getNodes
{
  "RSA_PubKey": "308201a2300d06092a864886f70d01010105000382018f003082018a02820181009f1f8a121c2fd6c76fd508d3e429f0c64bcb44c82a70573552aadcad071569e721958f5a5d09f9587ffafcfbe5341a2f0114acae346ef3c90213d3436ebb27f4350c990c5c8c3f8e1e36707bc08d42560823e3f24e09a03ad0955a5098019629dd04b27b251dce055f3ddcb0a41d66f0941b0b87cdfe3498d46038ab5df06f62a5ade08598573a88c8f5860dc1492a6e186485a9b13250e6d17b80cd39c5c819109e73ca732db23ef8baa776ec85ce0091becb2edefbaa5ed3e5dbfbd1f885a4fa881af3f144a8a565853533d89393592086b2d1d362e45bfe1fb45683aba6c640979ad6b46877184726c6ebd58b2eae85c7cfe3fbabef5f6cced850034b3847206c2d678c361876026b8d351e002af5e0ffe6f5b1f295fdc2f469caa2d2381ea0b48ca987cc2c8e635e8b19ce5e172a93761a8d490a9a4518d7255880a14d77b7ba774892b92a40bb81362e34fc6d5178d9b30112934205cb77fb9a282427394564a8554ea47286a47f86239e75c94789ce98c99844782462944f613167d7b50203010001",
  "nodeAccountId": {
    "accountNum": "3"
  },
  "nodeCertHash": "ZmZkNmFkYTc0YTNhMzRhOTA0YmVhNDc2MDMwODZmOGJlZjNiNmJlMThhYmVkNDRjNGQ0MGUxMmZiMTMwYjk3YmQ2Yjg1NWFlYzVkMGI5MGIwYjhjNzM1NGQ1ZjNiMGU0",
  "serviceEndpoint": [
    {
      "ipAddressV4": "I+fQlA==",
      "port": 50211
    },
    {
      "ipAddressV4": "KHlAMA==",
      "port": 50211
    },
    {
      "ipAddressV4": "I+fQlA==",
      "port": 50212
    },
    {
      "ipAddressV4": "A9P4rA==",
      "port": 50212
    },
    {
      "ipAddressV4": "A9P4rA==",
      "port": 50211
    },
    {
      "ipAddressV4": "KHlAMA==",
      "port": 50212
    }
  ],
  "description": "Hosted by Hedera | East Coast, USA",
  "stake": "10"
}
{
  "RSA_PubKey": "308201a2300d06092a864886f70d01010105000382018f003082018a0282018100c557af579fa83501be899b28907765bfdfcd52ab432b0195a1f1ecd86fc00ab6c5509b0fdd97edd3cb5cea56a295f312abb550831dbf963f450118b4fcc6e22cf4676200ce9cc8edfbbf558dc69f024264ad7d3dab23bed2133c274e6934489155db1087f90370905c64185a6211dc742fb9a6909d82186947b277463dfb3ff0acd47eff12ead1f6972ef2c1203793c45e77575be4fa110c7e40fa8db9c6187d113f4704014179071abf59be7d2b0de82de4215dc25506b1c9c26e4917401c997506e377e6bf03b688727e7940fad69c5e0da3cd5cbd2be777350aea2d0d47e97a448c84be6ce134d64bee0985c29162f4c1e567cca93d06a3c1be8abce35b557fb77f4fe671a66dec790756d0e8818165f2bacaa891aae7ac7437fc7175b6eb6deb7472378751bb6bf9b0e1483f9668e9fdbd5604c39b14d9e2bedeec846a980d704d171e7ba4b7fcd1a30d945ca12f47a325d9398aa18f97066054d4d15fc8994e2debe73e9271d548683f61ea44fb25071e3518a78ed3eb37e71a0691f2670203010001",
  "nodeId": "1",
  "nodeAccountId": {
    "accountNum": "4"
  },
  "nodeCertHash": "ZjBkOTRhY2NmNmRmZjM3Mjg3NGM5ZGJkOGQ3OTkyZWIzMTdhZjUwMDFjYTQxOTZhYmEyNjU4MDljYjNkMjAwYmE5NjFhNTQzOGMzYTVlZDA1YzgzYmRmOWNkMTE1ZDIy",
  "serviceEndpoint": [
    {
      "ipAddressV4": "A4XVkg==",
      "port": 50212
    },
    {
      "ipAddressV4": "KEYLyg==",
      "port": 50212
    },
    {
      "ipAddressV4": "A4XVkg==",
      "port": 50211
    },
    {
      "ipAddressV4": "I8cPsQ==",
      "port": 50212
    },
    {
      "ipAddressV4": "KEYLyg==",
      "port": 50211
    },
    {
      "ipAddressV4": "I8cPsQ==",
      "port": 50211
    }
  ],
  "description": "Hosted by Hedera | East Coast, USA",
  "stake": "10"
}
{
  "RSA_PubKey": "308201a2300d06092a864886f70d01010105000382018f003082018a02820181009ba457b73305f04a91cc46b1b965c4e841751abc8b1415a0badfd1f32c2482386a22725eb7ec74dea21e50617d648ea5ac393741ab01b8efb321239b8d4fdb1dfbeb9e3f39aa46580dd045d18ca44d002c37ddb527cce4ddc32bfc73419671f4ca4464a3f2a84fc85c71acf0e5a89626df69a81474ed16529f801a8afa97e435c4e04a964a357527288843e58f0a05cf5153ee4507b2c68b3d7fb54ae6a95a959c87a12f630e95c7b1b3c3695e858662417926d76c16983faf61225038745907e9cf13d67c2acd503ca451c85933ac4118acc279801cb968349903145ced27629dd08916317093587a77c2205cfa52543b53c3b6ea15b84e3d2c30c1ed752a4633c36b25b9893ea02ad562eb9b7868b3b4f47f4a25e356064962ac7b25e582944f00d30798a262f9214d8c5e74d0a8376cc2d6ba64e18f5e4a40afac625062d2ca23cd2800708321d3834314f0e5844859232673a32e70ae0d711e310581bcdb14e87134694c6e0930f46b37b96d49a64573947331e7e507d9e56de5e6146f2f0203010001",
  "nodeId": "2",
  "nodeAccountId": {
    "accountNum": "5"
  },
  "nodeCertHash": "Y2E2NzhlYmNiZDNkYzg2NDhmN2VkMDNmYjU5ZjBlMjFhZjY3NTEzZWFlZTUxMzE4ZTZiNTQ5YmU1YWNlOTA2ZWRjMWZmYTI2ZDkzYTU3YWNlYzliZTc3ZjQwZWFlZWQ3",
  "serviceEndpoint": [
    {
      "ipAddressV4": "NA9pgg==",
      "port": 50212
    },
    {
      "ipAddressV4": "aCv4Pw==",
      "port": 50212
    },
    {
      "ipAddressV4": "I+HJww==",
      "port": 50212
    },
    {
      "ipAddressV4": "NA9pgg==",
      "port": 50211
    },
    {
      "ipAddressV4": "I+HJww==",
      "port": 50211
    },
    {
      "ipAddressV4": "aCv4Pw==",
      "port": 50211
    }
  ],
  "description": "Hosted by Hedera | Central, USA",
  "stake": "10"
}
{
  "RSA_PubKey": "308201a2300d06092a864886f70d01010105000382018f003082018a0282018100c42ccac5fbc691fbbebda87ffd1e75bdcd8922494cf44fdbccee49788521c378bf77db0934ec0d2183d7c51db66f864c11ab7de1ac3c4cfdc1f093a2d6f37e2b34cbe4c8131f9683ad42878c83d3554c645aa167bcfb064a83dc45c5b1158499f9d92587fff7abcd5f221cd8150548413000fa6e5659089b1dfd65766ea78eaedfca6b45455fd8ab5984dbe35e5795d2c635ea7974d43e8eae4febffe492e707b48b1b0fc6481ae9e09d39133009b7d26402e6e52e5e91b2b380d88f0be7fb4b303e70219785057aa94ce924c4926e916569286e86b3ba651ca2a0a63df4f6907fefe3483d93b4ce1d4d03c7142111375b2c2c51d4eb839e37af530b2cbd6f50d4cb36e27937170d9cddac0ace2cc24b804b0a27351cf830b76525e26dfb9dbf49a056624a76862494e7263d0d70cebae952943e55842f5cad13fcf60a2e6dcf7a1d533f3a5bb54ec21918c76e525ba29146675831e17e36c61fe85498828d09b762015412b2e527849baec1cffc77de4c294c550811e598ff24da15a34569dd0203010001",
  "nodeId": "3",
  "nodeAccountId": {
    "accountNum": "6"
  },
  "nodeCertHash": "MjQ3MWYzZmU4MTQwNjgxZmU5MTkxM2QyY2MwNjNmMDY1ZTQ0OTBhZTYyZmY1ZDU0OGE1YWJlMTMxZDJhZjk2Y2JlM2FjMjViYmUyNDM2NmNhNGY4ZjBlNzZjZjk0NWYz",
  "serviceEndpoint": [
    {
      "ipAddressV4": "NvEmAQ==",
      "port": 50211
    },
    {
      "ipAddressV4": "I/dthw==",
      "port": 50211
    },
    {
      "ipAddressV4": "DVgWLw==",
      "port": 50211
    },
    {
      "ipAddressV4": "NvEmAQ==",
      "port": 50212
    },
    {
      "ipAddressV4": "DVgWLw==",
      "port": 50212
    },
    {
      "ipAddressV4": "I/dthw==",
      "port": 50212
    }
  ],
  "description": "Hosted by Hedera | West Coast, USA",
  "stake": "10"
}
{
  "RSA_PubKey": "308201a2300d06092a864886f70d01010105000382018f003082018a0282018100902f0490a9b7f5d2cd1c0d96c6a6990f573b5f0eb5bdbba39661ef023092419344669969a68a4c7071d329990fb1792e9001cb5598ea71c2d6676824320ee4cabf1dd357ae7f2adbedc1b1b0a9d95623779b4c4c7b47c4787a16ee7188c7217177624a9264ab39c41f7ff0b45a89bda40c4ad07c4d596d5f09d7056bcb5a35f44f95a59c266e09892dcbe46ad51f2d2b3e991a8f6658e1f2cb94c773eb44c44e892d1e55c1076f1608319ee657e40f192967543ab42ab222386d17586e253748dabd025e50b50ae6050720e239d64ee6fb4507c0614dd4be7afdb1330890ff3a6e176527c3116af129a9ac5e336d9f601e7127a6d7d820ad2f902dac9b248668a1bab08d10342ea69a7097132ff7120cc64fcde7840c656ba1732ba95e9c36751175e4ec3d84a7e0d28842b41bbbbd6f28e46c3a6633e1827965c55820d50dae2b0465cc0d42e195b9d1532e6225eb998d6a49079a8a1cd4d0175de3c87f97614847b3cbb17aa34be820b7b3ad98ac3faef993a6778974782c0c4ae3fabbcc430203010001",
  "nodeId": "4",
  "nodeAccountId": {
    "accountNum": "7"
  },
  "nodeCertHash": "ZjM1Nzg3M2Q0MTE0YTFhZWYwM2FkYzZiYTY5ZWZhZjI2OTBlMjI3YWJjMTZhNmZjNmU1MDQ5YTYzZmJkOTY4ODAwNGIxNGU0NjNjMjBlMzg0MzZhM2EyNGQzMTgyZGQ4",
  "serviceEndpoint": [
    {
      "ipAddressV4": "I+tBMw==",
      "port": 50211
    },
    {
      "ipAddressV4": "NrEzfw==",
      "port": 50212
    },
    {
      "ipAddressV4": "I+tBMw==",
      "port": 50212
    },
    {
      "ipAddressV4": "DUCqKA==",
      "port": 50211
    },
    {
      "ipAddressV4": "DUCqKA==",
      "port": 50212
    },
    {
      "ipAddressV4": "NrEzfw==",
      "port": 50211
    }
  ],
  "description": "Hosted by Hedera | West Coast, USA",
  "stake": "10"
}
{
  "RSA_PubKey": "308201a2300d06092a864886f70d01010105000382018f003082018a028201810091d7dfff78f4efbe5890450c5bc9e3534bffadad93fb7afb15bc7bcf67d3d3b413bd99940dd82564ada04ab2e4edf0a1c0b8fb7e1a8092e9138e960be2cc68b5b97f57d281c5872e97a479fc848363160e3863b57b33e4869b185ace5e36bd43ae5fa678c9eb66f1f4014786826b2f8fa7e0060f4405c0a8f9da7205ff4683a243fa0f315f1afbb4a4d140d02234e4473fb92fcb38f3eb28c60cf7cbfb64e069c18086e4dd61938920ae0fd7c193e6e104e65b817ed9398e232237fdf08322c9cec09d4099272a7c015d22b4dcc969f6ea1f518902105df60092b55a41b4f32b957b57d84e5b223905e8698951733ea9f2e2461ec0d6522ee816d5850facfeb412cff9b99943a87dc0d046447ce93b97e16d73b96b4263962f81fcf9458e57577c780a6f1615aa7a12326738e269bb731f89e891622e577ea54420bf0ca46be6fc4f71cf2681ac0252aa885e13be672cd284590427dcd137cf311625e8bee3b08fdcaaf465b387ce7cb33816f2c14a6b99ac7d734318cfc59b7ed939bafef8790203010001",
  "nodeId": "5",
  "nodeAccountId": {
    "accountNum": "8"
  },
  "nodeCertHash": "NDkzMWE3ODIwMmQ1NWYxMGIzMTU3NTc4NWMzZjQzOWRiNjgxOWJkMTEwMDNkZjdiYzJjZTkyZTI5YTUxN2I3YzIxODgwZGViNGMwMTc5NTc0NGI1NzZjZDQzYjg0OThk",
  "serviceEndpoint": [
    {
      "ipAddressV4": "Imr3QQ==",
      "port": 50211
    },
    {
      "ipAddressV4": "I1NZqw==",
      "port": 50212
    },
    {
      "ipAddressV4": "Imr3QQ==",
      "port": 50212
    },
    {
      "ipAddressV4": "DU7owA==",
      "port": 50211
    },
    {
      "ipAddressV4": "DU7owA==",
      "port": 50212
    },
    {
      "ipAddressV4": "I1NZqw==",
      "port": 50211
    }
  ],
  "description": "Hosted by Hedera | West Coast, USA",
  "stake": "10"
}
{
  "RSA_PubKey": "308201a2300d06092a864886f70d01010105000382018f003082018a0282018100c6e18c8fbf4cd4eb104542cb20aaaa252d95f052f1086d581c44ad737bf6676c0c3f789af5265b8afb79b50912da84e0afcf7547cb1fff08d0527017eb6dc5cdf83b51969d44336a6387cd70b94bf4c9baf2029840e5f4f863d7081f0fa81e0863adedb8b89a5dac2bb552d6e7b9fba222ac28c57075538fc957992942d341fa2876e6b507e9ce7ed572e8cfda5defa364fdf8d8e23829a4ccbb478f11eee3b32ab85e072951c5d9420115fba327073494f43b5f6bebf84152e356e7b16ba764b7a3b52cb2734640163be1465e6d1fa4c6e6f66684a635c9a556aa7100dbe645df8f4c423ae45a08cb35b4bc187886e2299b5c0210a5fba3b9449f483ef94ed922e1e98c113be166b89c73582243135d442306abe5a71b77018ff335d6dd79542697b168238b96727fd1339b5f82a3b6a597d976037ae2506456c8b34e9fbf3bc32410441c4bfc8eba58597254efebfaa78809a5c8854729a5ba78ece19fc8407dd8894a6bc7844037d878cace6c152c2e89e8a64b068a6c237e09993be806890203010001",
  "nodeId": "6",
  "nodeAccountId": {
    "accountNum": "9"
  },
  "nodeCertHash": "NjRlMDk4NjE1YmY0MDVmN2VkNWE0MDEzNDQ2Yjg5YzQ4OGNmY2Q2YmIyNWE0YTY3NmRjNzdlZWExMWQzM2Q3MDI2ODJmMGE2OWE4MDMwZThjNTc3N2QwZTQyMjAzNzk5",
  "serviceEndpoint": [
    {
      "ipAddressV4": "MhIRXQ==",
      "port": 50212
    },
    {
      "ipAddressV4": "FJaIWQ==",
      "port": 50212
    },
    {
      "ipAddressV4": "FJaIWQ==",
      "port": 50211
    },
    {
      "ipAddressV4": "In0XMQ==",
      "port": 50212
    },
    {
      "ipAddressV4": "In0XMQ==",
      "port": 50211
    },
    {
      "ipAddressV4": "MhIRXQ==",
      "port": 50211
    }
  ],
  "description": "Hosted by Hedera | West Coast, USA",
  "stake": "10"
}

@ochikov
Copy link
Contributor

ochikov commented Dec 16, 2022

@Neurone thanks. It seems that now works on my side. However, we are going to stick with the old URL as also the official documentation points to it. The problem in the JS SDK is the too-frequent fetching of the address book which will be fixed in the next release.

@Neurone
Copy link
Contributor

Neurone commented Dec 16, 2022

The official documentation can be changed if needed ;) but no problem to wait for the next release.

I'm a bit skeptical this problem is related to the SDK fetching sequence - I suppose it's the same frequency even when you change the url, and the new one has no problem, and I just tried again with grpcurl, and the old address still doesn't work for me, regardless of the SDK - so it seems strange.

@ochikov
Copy link
Contributor

ochikov commented Dec 16, 2022

@Neurone on my side the two URLs are working. However, I will check with the team of the mirror node if we need to change the URL. Keep in mind that the Mirror Node has some limitations of fetching and if a lot of people are using the first or the second proxy, the problem might occur as well. I will check and return it to you again.

@steven-sheehy
Copy link
Member

❯ grpcurl -d '{"file_id": {"fileNum": 102}, "limit": 0}' hcs.previewnet.mirrornode.hedera.com:5600 com.hedera.mirror.api.proto.NetworkService/getNodes
Failed to dial target host "hcs.previewnet.mirrornode.hedera.com:5600": EOF

You need to use -plaintext since port 5600 is not TLS and gprcurl defaults to assuming TLS.

hcs.previewnet.mirrornode.hedera.com:5600 redirects to previewnet.mirrornode.hedera.com:443 via a proxy. This is to provide backwards compatibility as we transition mirror nodes from VM to Kubernetes. We will open a ticket when it's appropriate to transition the SDKs to the new URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
6 participants