Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with get_following() call on some API servers #301

Open
brianoflondon opened this issue May 10, 2021 · 0 comments
Open

Error with get_following() call on some API servers #301

brianoflondon opened this issue May 10, 2021 · 0 comments

Comments

@brianoflondon
Copy link

I'm using the following code to fetch a list of all account which a specific account follows using the get_following() call.

def get_allowed_accounts(acc_name='podping') -> bool:
    """ get a list of all accounts allowed to post by acc_name (podping)
        and only react to these accounts """

    master_account = Account(acc_name, blockchain_instance=hive, lazy=True)
    allowed = master_account.get_following()
    return allowed

For some reason seemingly dependent on which specific api this call gets sent to, I get the following errors from time to time. The call works, I get my list and everything is fine apart from messy logs.

2021-05-10 09:37:55,751 WARNING beemapi.node MainThread : Error: Assert Exception:api_itr != _registered_apis.end(): Could not find API follow_api
2021-05-10 09:37:55,751 WARNING beemapi.node MainThread : Lost connection or internal error on node: https://rpc.ausbit.dev (1/100) 

2021-05-10 09:37:56,367 WARNING beemapi.node MainThread : Error: Assert Exception:api_itr != _registered_apis.end(): Could not find API follow_api
2021-05-10 09:37:56,367 WARNING beemapi.node MainThread : Lost connection or internal error on node: https://hive.roelandp.nl (1/100) 

I had a chat with Ausbitbank and he's not sure what's going on. This curl works perfectly on his api or any of them as far as I can tell.

curl --data-raw '{"id":16,"jsonrpc":"2.0","method":"call","params":["condenser_api","get_following",["podping",null,"blog",1000]]}' https://rpc.ausbit.dev 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant