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

update_token_insight.py script failure #662

Open
franckc opened this issue Apr 27, 2023 · 0 comments
Open

update_token_insight.py script failure #662

franckc opened this issue Apr 27, 2023 · 0 comments
Labels
bug Something isn't working as intended

Comments

@franckc
Copy link

franckc commented Apr 27, 2023

We seem to be hitting what I think are etherscan rate limiting when the update_token_insight.py script runs.

Seen in the logs:

2023-04-27T19:05:54.791682+00:00 app[scheduler.1237]: Error while fetching balance
2023-04-27T19:05:54.791698+00:00 app[scheduler.1237]: {'status': '0', 'message': 'NOTOK', 'result': 'Max rate limit reached'}
2023-04-27T19:05:54.840276+00:00 app[scheduler.1237]: Traceback (most recent call last):
2023-04-27T19:05:54.842113+00:00 app[scheduler.1237]: File "/app/logic/scripts/update_token_insight.py", line 483, in <module>
2023-04-27T19:05:54.842267+00:00 app[scheduler.1237]: fetch_reserved_wallet_balances()
2023-04-27T19:05:54.842271+00:00 app[scheduler.1237]: File "/app/logic/scripts/update_token_insight.py", line 453, in fetch_reserved_wallet_balances
2023-04-27T19:05:54.842340+00:00 app[scheduler.1237]: fetch_wallet_balance(token_stats.new_foundation_reserve_address)
2023-04-27T19:05:54.842342+00:00 app[scheduler.1237]: File "/app/logic/scripts/update_token_insight.py", line 389, in fetch_wallet_balance
2023-04-27T19:05:54.842406+00:00 app[scheduler.1237]: ogn_balance = fetch_wallet_token_balance(wallet, token_stats.ogn_contract)
2023-04-27T19:05:54.842407+00:00 app[scheduler.1237]: File "/app/logic/scripts/update_token_insight.py", line 359, in fetch_wallet_token_balance
2023-04-27T19:05:54.842467+00:00 app[scheduler.1237]: raise ValueError(resp["message"] or ("Failed to fetch %s balance" % token_addr))
2023-04-27T19:05:54.842478+00:00 app[scheduler.1237]: ValueError: NOTOK

Relevant code:

def fetch_wallet_token_balance(wallet, token_addr, decimals = 18):

@franckc franckc added the bug Something isn't working as intended label Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended
Projects
None yet
Development

No branches or pull requests

1 participant