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

RPC error out on OP #3

Open
0xSpuddy opened this issue Dec 19, 2023 · 0 comments
Open

RPC error out on OP #3

0xSpuddy opened this issue Dec 19, 2023 · 0 comments

Comments

@0xSpuddy
Copy link
Collaborator

Have been getting this error out on all the optimism tippers. Have not been able to find a cause, but maybe we can just handle the error better:

2023-12-12 11:00:01,301 - INFO - last report time: 1702307967
2023-12-12 11:00:01,313 - INFO - seconds until next interval: 3598.698058
2023-12-12 11:00:01,432 - INFO - token allowance: 1000000000000000000000
2023-12-12 11:00:01,469 - INFO - tellor token balance: 9.115626288874418
2023-12-12 11:00:01,489 - INFO - ethereum token balance: 0.07964275503864533
2023-12-12 11:00:01,489 - INFO - sleeping until next interval
2023-12-12 12:00:00,631 - WARNING - error getting data before
2023-12-12 12:00:00,638 - INFO - seconds until next interval: 3599.368411
2023-12-12 12:00:00,676 - WARNING - error getting chainlink round data
Traceback (most recent call last):
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/bin/tipper", line 33, in <module>
    sys.exit(load_entry_point('tipper-bot', 'console_scripts', 'tipper')())
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/tipper_bot/simple_tipper.py", line 425, in main
    balances = approve_token_and_check_balance()
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/tipper_bot/simple_tipper.py", line 291, in approve_token_and_check_balance
    token_allowance = oracle_token_contract.functions.allowance(
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/web3/contract.py", line 970, in call
    return call_contract_function(
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/web3/contract.py", line 1525, in call_contract_function
    return_data = web3.eth.call(
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/web3/module.py", line 57, in caller
    result = w3.manager.request_blocking(method_str,
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/web3/manager.py", line 197, in request_blocking
    response = self._make_request(method, params)
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/web3/manager.py", line 150, in _make_request
    return request_func(method, params)
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/web3/middleware/formatting.py", line 94, in middleware
    response = make_request(method, params)
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/web3/middleware/gas_price_strategy.py", line 90, in middleware
    return make_request(method, params)
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/web3/middleware/formatting.py", line 94, in middleware
    response = make_request(method, params)
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/web3/middleware/attrdict.py", line 33, in middleware
    response = make_request(method, params)
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/web3/middleware/formatting.py", line 94, in middleware
    response = make_request(method, params)
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/web3/middleware/formatting.py", line 94, in middleware
    response = make_request(method, params)
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/web3/middleware/formatting.py", line 94, in middleware
    response = make_request(method, params)
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/web3/middleware/buffered_gas_estimate.py", line 40, in middleware
    return make_request(method, params)
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/web3/middleware/exception_retry_request.py", line 105, in middleware
    return make_request(method, params)
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/web3/providers/rpc.py", line 88, in make_request
    raw_response = make_post_request(
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/web3/_utils/request.py", line 103, in make_post_request
    response.raise_for_status()
  File "/home/ubuntu/OP-ETH-USD-SPOT/auto-tipper-bot-liquity/env/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://optimism-mainnet.infura.io/v3/53ba4f713bf940fb87a58280912231ab
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