create account

RE: Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive by torrey.blog

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @achim03/re-learncode-qu131o

· @torrey.blog ·
Yes, I saw the same error. The API node beem tried to connect to doesn’t support the follow_api. Beem will retry other nodes until it finds one that works.

To avoid hitting this error, you can specify a list of which API nodes Beem should use.
properties (22)
authortorrey.blog
permlinkre-achim03-qu13i7
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2021.05.5"}
created2021-06-01 15:10:57
last_update2021-06-01 15:10:57
depth2
children7
last_payout2021-06-08 15:10:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length244
author_reputation6,751,817,739,213
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,065,791
net_rshares0
@achim03 · (edited)
Thanks now I have another error lol 🤣. I really struggle with python :-)
properties (22)
authorachim03
permlinkre-torreyblog-qu1dq1
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2021.05.5"}
created2021-06-01 18:51:39
last_update2021-06-01 18:52:12
depth3
children4
last_payout2021-06-08 18:51:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length72
author_reputation325,729,828,668,168
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,069,658
net_rshares0
@learncode ·
What is the new error?
properties (22)
authorlearncode
permlinkre-achim03-202161t131011606z
categoryprogramming
json_metadata{"tags":["ecency"],"app":"ecency/3.0.18-mobile","format":"markdown+html"}
created2021-06-01 23:10:12
last_update2021-06-01 23:10:12
depth4
children3
last_payout2021-06-08 23:10:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length22
author_reputation682,726,195,093
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,073,662
net_rshares0
@achim03 ·
It tells me syntax error and shows c:. I think there is a problem with my path...
properties (22)
authorachim03
permlinkre-learncode-qu2o3o
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2021.05.5"}
created2021-06-02 11:33:24
last_update2021-06-02 11:33:24
depth5
children2
last_payout2021-06-09 11:33:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length81
author_reputation325,729,828,668,168
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,082,385
net_rshares0
@nathen007.stem ·
Sorry, I had the same problem. How do we do that please?
👍  
properties (23)
authornathen007.stem
permlinkqu15gs
categoryprogramming
json_metadata{"tags":["stem"],"app":"stemgeeks/0.1","canonical_url":"https://stemgeeks.net/@nathen007.stem/qu15gs"}
created2021-06-01 15:53:18
last_update2021-06-01 15:53:18
depth3
children1
last_payout2021-06-08 15:53:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length56
author_reputation166,075,596,964
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,066,719
net_rshares1,254,097,046
author_curate_reward""
vote details (1)
@learncode · (edited)
You can ignore the error, and the code will still work. It seems like beem is smart enough to remember which API node is stable.

Or, you can force beem to use your favorite node like this:

```
API_NODE = 'https://api.deathwing.me'
HIVE = beem.Hive(node=[API_NODE])
beem.instance.set_shared_blockchain_instance(HIVE)
```

Then try the `get_follow_count()` call again.

Hope this helps!
properties (22)
authorlearncode
permlinkre-nathen007stem-qu15ty
categoryprogramming
json_metadata{"tags":["programming"],"app":"peakd/2021.05.5"}
created2021-06-01 16:01:09
last_update2021-06-01 16:14:06
depth4
children0
last_payout2021-06-08 16:01:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length386
author_reputation682,726,195,093
root_title"Part 2: Coding on Hive With Python - Installing Modules and Fetching Some Data from Hive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,066,849
net_rshares0