Skip to content

Download hive blockchain #5

@GabrieleSipio

Description

@GabrieleSipio

Python Version

Python 3.8

Hivepy Version

hivepy ver 0.10

Expected Behavior

The program should continue to download blocks from Hive until he reaches the final block.

Actual Behavior

I keep reciving warnings of RPCErrorRecoverable until the program closes itself from RPCError generated from the method run specificly from the for where I pull out the blocks.

Steps to reproduce

simply run the script.

Stack Trace

WARNING:root:Retry in 1s -- RPCErrorRecoverable: non-200 response: 503 from api.hive.blog
WARNING:root:Retry in 1s -- RPCErrorRecoverable: non-200 response: 503 from api.hive.blog
ERROR:hivebase.http_client:Unexpected exception! Please report at https://github.com/pharesim/hive-python/issues -- RPCError: unspecified error from api.hive.blog (Request Timeout) in get_block
Traceback (most recent call last):
File "hive_blockchain_download.py", line 61, in
run(output_file, start_block, end_block)
File "hive_blockchain_download.py", line 42, in run
for block in b.stream_from(start_block=start_block, full_blocks=True):
File "/home/sipione/.local/lib/python3.6/site-packages/hive/blockchain.py", line 95, in stream_from
yield self.hive.get_block(block_num)
File "/home/sipione/.local/lib/python3.6/site-packages/hive/hived.py", line 405, in get_block
return self.call('get_block', block_num, api='database_api')
File "/home/sipione/.local/lib/python3.6/site-packages/hivebase/http_client.py", line 321, in call
raise e
File "/home/sipione/.local/lib/python3.6/site-packages/hivebase/http_client.py", line 296, in call
raise RPCError(detail)
hivebase.exceptions.RPCError: unspecified error from api.hive.blog (Request Timeout) in get_block

hive_blockchain_download.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions