I am playing with NEM api and trying to find all the transactions which were sent to some particular address. To do this I basically invoke a account/transfers/incoming
in a loop.
Everything works fine when I connect to some supernodes, but when I try to do the same on my local NIS server I get an error after some iteration.
Here are the APIs that were invoked:
- http://127.0.0.1:7890/account/transfers/incoming?address=ND2JRPQIWXHKAA26INVGA7SREEUMX5QAI6VU7HNR
- http://127.0.0.1:7890/account/transfers/incoming?address=ND2JRPQIWXHKAA26INVGA7SREEUMX5QAI6VU7HNR&hash=b957353282b4b116e8888e0b125dac0dcc0b9f9243d855b10e6dcfa3b3938238
- http://127.0.0.1:7890/account/transfers/incoming?address=ND2JRPQIWXHKAA26INVGA7SREEUMX5QAI6VU7HNR&hash=b67039ebc23d20e17c8901d38516f273acd38be18bbe645b2408da778fc923f7
- http://127.0.0.1:7890/account/transfers/incoming?address=ND2JRPQIWXHKAA26INVGA7SREEUMX5QAI6VU7HNR&hash=4c30c5383004cd742f74c84734d7e4b58bacc9760b7927cb86df24c1bf73b429
- http://127.0.0.1:7890/account/transfers/incoming?address=ND2JRPQIWXHKAA26INVGA7SREEUMX5QAI6VU7HNR&hash=5be0eb921eda21fd12d3c102960df014a43093d54abf4dd1de2c292c2f05a6d7
- http://127.0.0.1:7890/account/transfers/incoming?address=ND2JRPQIWXHKAA26INVGA7SREEUMX5QAI6VU7HNR&hash=b76ce8654b0996e04754e2d86eedd67d2f64df2823239075e0ec915bb9568022
- http://127.0.0.1:7890/account/transfers/incoming?address=ND2JRPQIWXHKAA26INVGA7SREEUMX5QAI6VU7HNR&hash=7cd4b3af723e5c25b2597a8fdc06f3f613c71a8c3aa2061cd7e90fa9bcb58203
- http://127.0.0.1:7890/account/transfers/incoming?address=ND2JRPQIWXHKAA26INVGA7SREEUMX5QAI6VU7HNR&hash=e655444698dbe7f846bcc81ce82e49e027ef146c9478f2d500bcd5f49135e35f
- http://127.0.0.1:7890/account/transfers/incoming?address=ND2JRPQIWXHKAA26INVGA7SREEUMX5QAI6VU7HNR&hash=0847671cab1d22adaaa1f9ee225a89d42252b5987d302368d02233264c9181f6
- http://127.0.0.1:7890/account/transfers/incoming?address=ND2JRPQIWXHKAA26INVGA7SREEUMX5QAI6VU7HNR&hash=ed5af2d269c9b6df06a62758ee9ce3b3933c8f064bbae6ba0206ae724d121203
The last call fails with an error: {"timeStamp":83480913,"error":"Bad Request","message":"Neither transaction id was supplied nor hash was found in cache","status":400}
. But completely the same request to a NEM supernode returns everything with no problem.
My NIS was installed yesterday (also I am not sure whether I have followed a correct tutorial), and it is fully synced (not sure how to actually test it by /chain/height
returns the same number calling my NIS and a supernode.
So, what is going on here and how can I fix it?