ThePheonixGuy / sunsynk-scraper-addon

MIT License
8 stars 2 forks source link

Having this problem, what could it be? #15

Open marcelklopper opened 1 year ago

marcelklopper commented 1 year ago

[s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] done. [services.d] starting services [services.d] done. Starting... 2023-04-18 13:07:35,315 | INFO | Startup 2023-04-18 13:07:35,317 | DEBUG | Got Options: 2023-04-18 13:07:35,321 | DEBUG | { "mqtt_username": "redacted", "mqtt_password": "redacted", "mqtt_host": "core-mosquitto", "mqtt_port": 1883, "sunsynk_email": "redacted", "sunsynk_password": "redacted", "debug_logging": true, "update_interval": 60, "battery_discharge_rate": 2.5, "battery_min_state_of_charge": 15 } 2023-04-18 13:07:35,334 | DEBUG | Starting new HTTPS connection (1): pv.inteless.com:443 2023-04-18 13:07:36,073 | DEBUG | https://pv.inteless.com:443 "POST /oauth/token HTTP/1.1" 200 None 2023-04-18 13:07:36,080 | ERROR | 'NoneType' object is not subscriptable Traceback (most recent call last): File "/app/main.py", line 118, in main data_ingest_service = DataIngestService() File "/app/request_client.py", line 85, in init self._client = RequestClient() File "/app/request_client.py", line 11, in init self.login() File "/app/request_client.py", line 16, in login credentials.bearer_token = self.get_bearer_token() File "/app/request_client.py", line 35, in get_bearer_token my_access_token = raw_data["data"]["access_token"] TypeError: 'NoneType' object is not subscriptable 2023-04-18 13:07:36,085 | INFO | Shutting down due to an error [cmd] /app/run.sh exited 0 [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] waiting for services. [s6-finish] sending all processes the TERM signal.