You are viewing a single comment's thread from:

RE: Daily Steem-Python Challenge, Win 1 Steem!

in #contest7 years ago

I tried your code and something different yesterday and I always get this error, would you happen to have idea what may be wrong on my side (using Linux and venv, py 3.6)

WARNING:urllib3.connectionpool:Retrying (Retry(total=19, connect=None, read=None, redirect=0, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7ff791635630>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /

Sort:  

@veleje

That's because the default node on the steem-python is dead. Have a look at the first or second post in the series. @amosbastian suggested there was a fix.

I use this workaround in my own projects.

Thank you. I'm not sure what exactly i should do, I'm beginner with Python.
I replaced:
steem = Steem()
with:

But I'm getting the same error. steem = Steem(nodes=["https://api.steemit.com", "https://rpc.buildteam.io"])

steem = Steem(nodes=["https://api.steemit.com", "https://rpc.buildteam.io"])

this works for me.