Open neko039 opened 4 years ago
別人新丟上去的BUNDLE是可以找到的
python3 findmessages.py hello bundle is : TCDQXUT9E9WJL9LKLJBSDVFNLAYQ9HHGMIJLAIWDMHZYERPHLLLGIHMJCWQWCGIDDMNCLJJUUGKB9VZMD Transaction = {'hashes': [TransactionHash(b'UNLFOAQDJSKDXLUHEWVFHRYAVXBSTGANXUFUIXCXESSXAWGGUKMKGZUWOSXNAPCK9BV9XZORFRTIA9999')], 'duration': 0} Transaction hash = UNLFOAQDJSKDXLUHEWVFHRYAVXBSTGANXUFUIXCXESSXAWGGUKMKGZUWOSXNAPCK9BV9XZORFRTIA9999 Travetown-Spamming Count: 082617 Timestamp: 2020-09-22T08:41:23+02:00 gTTA took 0s
去抓原本在dashboard的BUNDLE去找的,就不行了
[x] 就算因為帳本完整度問題,導致 findTransaction API 返回空值,也不能讓頁面崩潰
[ ] 調整 permanode,讓所有的帳本恢復
findmessages.py程式沒有改過,現在程式不能跑了,這裡的BUNDLE是去抓dashboard頁面上的
錯誤訊息:
hello bundle is : KDEUKSKBHGIJKWVULZNEVYIRUBXUJWXIWJLQRAEPDCSAHHBHTDNHRSPJYFKOSXCPCDESBQYXQVEGEEDGB Transaction = {'hashes': [], 'duration': 0} Transaction hash =
print(findmessages(TXN_BUNDLE))
File "findmessages.py", line 16, in findmessages
bundle = api.get_bundles(test)
File "/home/iota_server02/.local/lib/python3.6/site-packages/iota/api.py", line 721, in get_bundles
return extended.GetBundlesCommand(self.adapter)(transaction=transaction)
File "/home/iota_server02/.local/lib/python3.6/site-packages/iota/commands/init.py", line 126, in call
replacement = self._prepare_request(self.request)
File "/home/iota_server02/.local/lib/python3.6/site-packages/iota/commands/init.py", line 300, in _prepare_request
failure_message = 'Request failed validation',
File "/home/iota_server02/.local/lib/python3.6/site-packages/iota/commands/init.py", line 335, in _apply_filter
'filter_errors': runner.get_errors(with_context=True),
ValueError: Request failed validation ({'transaction': ['empty']}) (
Traceback (most recent call last): File "findmessages.py", line 23, in
exc.context["filter_errors"]
contains more information).