isu-cisa / isu-credential

ISU microcredit on iota tangle.
0 stars 4 forks source link

findmessages.py不能使用 #12

Open neko039 opened 4 years ago

neko039 commented 4 years ago

findmessages.py程式沒有改過,現在程式不能跑了,這裡的BUNDLE是去抓dashboard頁面上的 image

錯誤訊息:

hello bundle is : KDEUKSKBHGIJKWVULZNEVYIRUBXUJWXIWJLQRAEPDCSAHHBHTDNHRSPJYFKOSXCPCDESBQYXQVEGEEDGB Transaction = {'hashes': [], 'duration': 0} Transaction hash =
Traceback (most recent call last): File "findmessages.py", line 23, in 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']}) (exc.context["filter_errors"] contains more information).

neko039 commented 3 years ago

別人新丟上去的BUNDLE是可以找到的 image

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去找的,就不行了

yillkid commented 3 years ago

錯誤畫面

image

分析

  1. 這是因為所屬的 full-node 被 snapshot 了,早期的交易全部被清除
  2. 即便找不到對應的 credentials 也不該直接顯示 error message page

解決方案