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

[Blocks API Error] #2197

Open
mgpai22 opened this issue Dec 6, 2024 · 0 comments
Open

[Blocks API Error] #2197

mgpai22 opened this issue Dec 6, 2024 · 0 comments

Comments

@mgpai22
Copy link
Contributor

mgpai22 commented Dec 6, 2024

When /blocks/headerIds is posted with a huge amount of header ids, it works sometimes but frequently I have come across this error.

{
    "error": 400,
    "reason": "bad.request",
    "detail": "The request content was malformed:\nAttempt to decode value on failed cursor: DownField(header)"
}

I think the issue is either requesting too much data at once or due to spamming the node. It could be a combination of this too.

Here is the data I queried, it is 50 header ids

[
    "a9d9bb99118fd79915002f0ccbda3a596fb1938a8d7d2bdbda460ec7436e2ae2",
    "2de9220e6a4c66caa14435ec31ae53009b78eb7eff4123dda7e1052324aeb823",
    "d730fd49b5cc4bbe50101c9dbc0e23e2ae3a276613a6216dd12f16defb825ac2",
    "331f1475728cd97709edec68b5584305895783c87ab4bb8aa1c95a2d5dc9d54a",
    "258975ef7de28b12474b36480abbdb3040b690e2cf38a76549db6e056462a428",
    "82aefb3164f8477c890c4385ffb0c7d01d1ba74c2ad882554ad8422369a16e1b",
    "3c17d6f9397c0687f7206a3403efe1e97267683159e5caf3a4e41db28e345659",
    "97792a0a047b1ccc80a9f5d12427565788db820ca02702759dcc76bf2703b08d",
    "de93786b8636c9b3de405561708ec0e14c44842ea0e6d38bebf7e97e596787e3",
    "c2d8777201340de76a18a7fb293eb7e64fcdfa0a849e6113b6e43bb06b73b860",
    "2408c6361a827f0f30616c18a34a6f53521f64c26b41018252cf9c02bc116692",
    "bb3b66e23e436d1c2153f34737a6d37717fec7175247733598bd476176acd028",
    "5b339f39e742f00b03a5702568320d9438670555232f1a038fb15ea26210dfb5",
    "6c98fcf2757f48cd1bd528462c86b713a0ce84b065584feca3b9b838725f689a",
    "44022f546975bcd48cae3ab45d70306b250b43f6a3d3ec304bea8d5fdba42821",
    "b25bf29ad38be9f58b2063d88ab0d2dda4a8825561306850277fd2deaafc1178",
    "096833c97f9a96f9185748932fa6f4f1a2a22fffd4bcfecd069cb2b7d8f05b22",
    "a1a2642e5bef3e93f5fdcf40efa4bf4d9139bc73c088feb42fa7da7b8ffda822",
    "37e1a367c5a8aab273c7de9f889abeede9eddd9f3fadf024d35464f125ea7564",
    "82dfe82985d590a7386c8be4077cf5bef09baf607d41c072bf0fc8d512a51f74",
    "8719b7eb6733f52478fe574cd67feff68c1b8b08988fdbd12f95489155da3f1a",
    "e82a930ebd10b48e6ecd27b91b462a0a536dcbe1dc48fecf9a991d30e69c1272",
    "d5ddefeebaaa1e64a1131a42beb311836707791849590d2fb14db4fe0120fb82",
    "7df1cadb9f8c738930b036979cc44c2e46bcaf57466d4ded3c84b4bf2fe32941",
    "93f5f2ecd4b11a526aec36910480df09931d2c633364e19dd2dba7203d2c51b9",
    "79d7034f1c544a3dc718b30380f9bc2afefdc6c4cca912f42e1c5c72ff3a036a",
    "f5ac57d784fde7172f58e378d5ddb23f1147084593b1b3a6a1a0c2813f3f45ac",
    "551c6be30382da7fb57d8a513b5837ceb5f1c20cd4fc9e67661428d2dab6ec26",
    "0acb8e4fa83c18a2d55cee3708a5d4c1cd6817cbabe008e5e741bce6c338384d",
    "97587371572dc7f42d60a4692f72bd4831c4b6d7b0b7f3c761b50f8c3f0c4331",
    "9a52f18e5f279f116b56ca581acd3ee0dd07228a24ea205650d1a5476c25547d",
    "70fc5b8c2226129c33480effd6c8eed8adfe71c4287e2e6438d7881cd2beaef5",
    "10af94eb406e20c35ed2ded9e0d7643933f67aa3e9a4e27941f50f9d79e05f3e",
    "8b4159af7f4cb16b029efe4851276363e5d93e2caaeaeca5b9f3f2dac472e37e",
    "7e6cc1eb60aec799cdf3d5de7d89ab49b03845c9259e1593e3b8bb05813a2c10",
    "76a6902cf2cc2f75809aaf4857d0a413db8da6c60d89356692eae392cd23463b",
    "55bbafaf725b1f6e219b9555431545b9e226969044665a078b9d317e598564aa",
    "692d3faa1f8d2fa418c571b9cd7ba8768901d7f7076e4865aa7a9754ba529653",
    "851f80e6932eb4686fd6751589eb1b9a9a171f8d2007dcb5e0b9e521f92d6537",
    "d0030f3203b690c547dbad6a8f91d3a84d1dfc3551db0895516a42337b183c5b",
    "cfb858dcaf59e078db0e330e4c0ed5b386f764c9a9bda3d963b1a0fc18cfd8ed",
    "a129c8289436d1145c95b212dfe157eefa719f5ad93ce7b0797db28b2b934922",
    "37007d7ef9f4caebbb689cebef3472c48c7d2c480be3ee8f7b7fe6bfe8cde3ff",
    "e1991741145d456b111446d936778e2736c4887a22e21f35cef75dae95643a39",
    "92b5b9d5c5aff55d2b7657a3ca0e00a9b42eebab0d189551b19ddd0a74aec33e",
    "f725a20b21f3483a8052133acd76cdfef28cd34bfb6ba8f4094ed26508c11d50",
    "24d5c9a3310b330776a9bb3f99d609c263e7f3cca4feae270550f33c0eb95150",
    "03b213a3f376c9b6c49f31b7647cf6aed6f59dd2e14ac421d1223b53cef237ac",
    "68d3f6438f946eb95971da8be105b11815bc2419b851c6fe929bcf28c0cc2c02",
    "74639250ca1d4d2e2f5548fb5a6b34e7a095e776da5682113a7e7098a549fcae",
    "a4b2cbb0114b6064e78e8fbddaf371a337efac83e0a138485ac040b880ff8464",
    "2889d3e7bb40195f1c01a31c53bd0b8dd7dd885fa4f8985706d086089fba6d71"
]

This returns an output of 5.2 MB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant