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

Intermittent error 32603 when leaving the bot to run over a time #61

Closed
vaidab opened this issue Apr 5, 2022 · 1 comment
Closed

Intermittent error 32603 when leaving the bot to run over a time #61

vaidab opened this issue Apr 5, 2022 · 1 comment

Comments

@vaidab
Copy link

vaidab commented Apr 5, 2022

I get 3 consecutive errors (before of that log shows normal behavior):

{'code': -32603, 'message': 'empty resp'}
Traceback (most recent call last):
File "LimitSwap.py", line 5830, in runLoop
run()
File "LimitSwap.py", line 5467, in run
token['_QUOTE'] = check_precise_price(token['_IN_TOKEN'], token['_OUT_TOKEN'], token['_WETH_DECIMALS'], token['_CONTRACT_DECIMALS'], token['_BASE_DECIMALS'])
File "LimitSwap.py", line 3283, in check_precise_price
reserves = pair_contract.functions.getReserves().call()
File "/home/X/.local/lib/python3.8/site-packages/web3/contract.py", line 959, in call
return call_contract_function(
File "/home/X/.local/lib/python3.8/site-packages/web3/contract.py", line 1503, in call_contract_function
return_data = web3.eth.call(
File "/home/X/.local/lib/python3.8/site-packages/web3/module.py", line 57, in caller
result = w3.manager.request_blocking(method_str,
File "/home/X/.local/lib/python3.8/site-packages/web3/manager.py", line 187, in request_blocking
return self.formatted_response(response,
File "/home/X/.local/lib/python3.8/site-packages/web3/manager.py", line 168, in formatted_response
raise ValueError(response["error"])
ValueError: {'code': -32603, 'message': 'empty resp'}

@tsarbuig
Copy link
Owner

tsarbuig commented Apr 5, 2022

d34e2c9

this should help, tell me if it's better after updating with this code

@tsarbuig tsarbuig closed this as completed Apr 5, 2022
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

2 participants