(venv) PS C:\Users\pc\Desktop\ProjetoVoid\FarmTRX> python main.py       
Erro ao conectar ao nó TRON: provider is not a HTTPProvider
 * Serving Flask app 'backend.flask_server'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://127.0.0.1:5000
Press CTRL+C to quit
127.0.0.1 - - [13/Nov/2024 22:26:12] "GET /metrics HTTP/1.1" 200 -
[2024-11-13 22:26:12,448] ERROR in app: Exception on /rewards [GET]
Traceback (most recent call last):
  File "C:\Users\pc\Desktop\ProjetoVoid\FarmTRX\venv\Lib\site-packages\flask\app.py", line 1511, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\pc\Desktop\ProjetoVoid\FarmTRX\venv\Lib\site-packages\flask\app.py", line 919, in full_dispatch_request       
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\pc\Desktop\ProjetoVoid\FarmTRX\venv\Lib\site-packages\flask\app.py", line 917, in full_dispatch_request       
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\pc\Desktop\ProjetoVoid\FarmTRX\venv\Lib\site-packages\flask\app.py", line 902, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\pc\Desktop\ProjetoVoid\FarmTRX\backend\flask_server.py", line 25, in get_rewards
    rewards = db_manager.get_rewards()
              ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DBManager' object has no attribute 'get_rewards'
127.0.0.1 - - [13/Nov/2024 22:26:12] "GET /rewards HTTP/1.1" 500 -
Traceback (most recent call last):
  File "C:\Users\pc\Desktop\ProjetoVoid\FarmTRX\venv\Lib\site-packages\requests\models.py", line 974, in json
    return complexjson.loads(self.text, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\pc\Desktop\ProjetoVoid\FarmTRX\main.py", line 29, in <module>
    window = MainWindow()
             ^^^^^^^^^^^^
  File "C:\Users\pc\Desktop\ProjetoVoid\FarmTRX\gui\main_window.py", line 15, in __init__
    self.init_ui()
  File "C:\Users\pc\Desktop\ProjetoVoid\FarmTRX\gui\main_window.py", line 35, in init_ui
    self.dashboard_page = DashboardPage()
                          ^^^^^^^^^^^^^^^
  File "C:\Users\pc\Desktop\ProjetoVoid\FarmTRX\gui\dashboard_page.py", line 14, in __init__
    self.load_data()
  File "C:\Users\pc\Desktop\ProjetoVoid\FarmTRX\gui\dashboard_page.py", line 50, in load_data
    rewards_data = rewards_response.json()
                   ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\pc\Desktop\ProjetoVoid\FarmTRX\venv\Lib\site-packages\requests\models.py", line 978, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Me de todos os arquivos completos que precisam ser atualizados para acabar com os erros