robbrad / UKBinCollectionData

UK Council Bin Collection Data Parser Outputting Bin Data as a JSON
MIT License
141 stars 90 forks source link

Chelmsford Council stopped working #772

Open Johnyb62 opened 3 months ago

Johnyb62 commented 3 months ago

Name of Council

Chelmsford Council

Issue Information

Home Assistant Version (core) : 2024.7.3

Installation Method : Using HACS Release: [0.83.0]

Name of Council (if relevant) : Chelmsford Council

Issue Information Looks like its timing out in the logs:

Logger: homeassistant.components.sensor
Source: runner.py:190
integration: Sensor (documentation, issues)
First occurred: 2:52:43 PM (1 occurrences)
Last logged: 2:52:43 PM
Setup of sensor platform uk_bin_collection is taking over 10 seconds.

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:408
integration: Sensor (documentation, issues)
First occurred: 2:53:33 PM (1 occurrences)
Last logged: 2:53:33 PM
Setup of platform uk_bin_collection is taking longer than 60 seconds. Startup will proceed without waiting any longer.

Logs from Standalone Chrome Docker:

Starting Selenium Grid Standalone... Tracing is disabled 14:52:01.211 INFO [LoggingOptions.configureLogEncoding] - Using the system default encoding 14:52:01.230 INFO [OpenTelemetryTracer.createTracer] - Using OpenTelemetry for tracing 14:52:02.895 INFO [NodeOptions.getSessionFactories] - Detected 4 available processors 14:52:02.960 INFO [NodeOptions.report] - Adding chrome for {"browserName": "chrome","browserVersion": "126.0","goog:chromeOptions": {"binary": "\u002fusr\u002fbin\u002fgoogle-chrome"},"platformName": "linux","se:noVncPort": 7900,"se:vncEnabled": true} 1 times 14:52:03.013 INFO [Node.<init>] - Binding additional locator mechanisms: relative 14:52:03.070 INFO [GridModel.setAvailability] - Switching Node 898cfd87-45e3-433f-8cce-6dbc98ad1cd1 (uri: http://172.17.0.2:4444) from DOWN to UP 14:52:03.071 INFO [LocalDistributor.add] - Added node 898cfd87-45e3-433f-8cce-6dbc98ad1cd1 at http://172.17.0.2:4444. Health check every 120s 14:52:03.266 INFO [Standalone.execute] - Started Selenium Standalone 4.22.0 (revision c5f3146703): http://172.17.0.2:4444 14:52:33.576 INFO [LocalDistributor.newSession] - Session request received by the Distributor: [Capabilities {browserName: chrome, goog:chromeOptions: {args: [--headless, --no-sandbox, --disable-gpu, --start-maximized, --disable-dev-shm-usage], excludeSwitches: [enable-logging], extensions: []}, pageLoadStrategy: normal, se:name: ChelmsfordCityCouncil}] 14:52:35.824 INFO [LocalNode.newSession] - Session created by the Node. Id: a8c0e28cf6db84ed17123ce8e8194efb, Caps: Capabilities {acceptInsecureCerts: false, browserName: chrome-headless-shell, browserVersion: 126.0.6478.114, chrome: {chromedriverVersion: 126.0.6478.63 (df799988fdc9..., userDataDir: /tmp/.org.chromium.Chromium...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:35911}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:bidiEnabled: false, se:cdp: ws://172.17.0.2:4444/sessio..., se:cdpVersion: 126.0.6478.114, se:name: ChelmsfordCityCouncil, se:vnc: ws://172.17.0.2:4444/sessio..., se:vncEnabled: true, se:vncLocalAddress: ws://172.17.0.2:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true} 14:52:35.829 INFO [LocalDistributor.newSession] - Session created by the Distributor. Id: a8c0e28cf6db84ed17123ce8e8194efb Caps: Capabilities {acceptInsecureCerts: false, browserName: chrome-headless-shell, browserVersion: 126.0.6478.114, chrome: {chromedriverVersion: 126.0.6478.63 (df799988fdc9..., userDataDir: /tmp/.org.chromium.Chromium...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:35911}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:bidiEnabled: false, se:cdp: ws://172.17.0.2:4444/sessio..., se:cdpVersion: 126.0.6478.114, se:name: ChelmsfordCityCouncil, se:vnc: ws://172.17.0.2:4444/sessio..., se:vncEnabled: true, se:vncLocalAddress: ws://172.17.0.2:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true} 14:53:54.873 INFO [LocalSessionMap.lambda$new$0] - Deleted session from local Session Map, Id: a8c0e28cf6db84ed17123ce8e8194efb 14:53:54.873 INFO [GridModel.release] - Releasing slot for session id a8c0e28cf6db84ed17123ce8e8194efb 14:53:54.874 INFO [SessionSlot.stop] - Stopping session a8c0e28cf6db84ed17123ce8e8194efb

Here's a test URL for a random property in my area that could be used for testing (link obtained prior to posting):- https://www.chelmsford.gov.uk/myhome/?entry[655e95fb-5f84-4d1b-ab65-878a2f3e3ce4]=66366413

Verification

Johnyb62 commented 2 months ago

Think the issue may be server side with Council, as using action 'Home Assistant Core Integration: Reload config entry' will result in the entities working (after a few attempts). So probably little you can do.