Closed letmejustputthishere closed 2 years ago
What's ur canister id? Then I could have a try,
djkni-kiaaa-aaaae-qabua-cai
I tried to use different cron mechanisms, but all of them lead to the same error. Seems like calling the same update_raw
in a small timeframe leads to this error.
this also appears:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/moritz/ethflower-disburse/off-chain-backup/state_backup/backup.py", line 38, in main
s.run()
File "/home/moritz/.pyenv/versions/3.8.6/lib/python3.8/sched.py", line 151, in run
action(*argument, **kwargs)
File "/home/moritz/ethflower-disburse/off-chain-backup/state_backup/backup.py", line 27, in backup
result = agent.update_raw(
File "/home/moritz/ethflower-disburse/.venv/lib/python3.8/site-packages/ic/agent.py", line 91, in update_raw
result = self.poll(canister_id, req_id)
File "/home/moritz/ethflower-disburse/.venv/lib/python3.8/site-packages/ic/agent.py", line 121, in poll
status, cert = self.request_status_raw(canister_id, req_id)
File "/home/moritz/ethflower-disburse/.venv/lib/python3.8/site-packages/ic/agent.py", line 111, in request_status_raw
cert = self.read_state_raw(canister_id, paths)
File "/home/moritz/ethflower-disburse/.venv/lib/python3.8/site-packages/ic/agent.py", line 103, in read_state_raw
d = cbor2.loads(ret)
_cbor2.CBORDecodeValueError: unknown unsigned integer subtype 0x1c
I ran ur code about serveral minutes, but no error occured. Can you find a specific method to reproduce the issue?
Besides, what's ur current version of ic-py.
i updated to 1.0.0
, thanks for the hint! i will keep an eye on it and see whether the error pops up again
still happens :/
did you make sure you ran the code in the loop? i think repeatedly calling update_raw
within a couple of seconds causes the issue
yes, I ran the code you provide.
i'm running the code in this branch using python 3.8.6
on ubuntu 20.04
https://github.com/flowerpowerdao/off-chain-backup/tree/disburse
you need to remove the except: pass
to see the errors
Can you paste your error message here with new version?
my bad, i didnt update the dependencies on my server! it works now and yields None
instead of the errors from before. Why does that happen? Is the call failing or the IC not answering?
I think it’s timeout for waiting the result. Update call is asynchronous and we keep querying the result for 10s. If timeout, it returns None.
Maybe we can expose the argument for setting the timeout.
With dfx
I think i never had a timeout, why does it happen so frequently with ic-py
?
Maybe we can expose the argument for setting the timeout.
That would be cool
When I run this code
get the following error after a couple of iterations: