From 6ee9e5103e08be518551d4ef2ae10150afa7f57f Mon Sep 17 00:00:00 2001 From: Eric FELIXINE Date: Mon, 4 May 2026 23:43:46 -0400 Subject: [PATCH] Fix OpenRemote: Use localhost:8080 for token URL - Replace openremote-keycloak-1 (internal Docker) with localhost:8080 (Traefik) - Fixes [Errno -2] Name or service not known error --- simulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulator.py b/simulator.py index 48c817f1..84bae74a 100644 --- a/simulator.py +++ b/simulator.py @@ -668,7 +668,7 @@ def _get_or_token() -> str: return _or_token_cache["token"] try: # Use password grant with admin user (full rights) - token_url = f"http://openremote-keycloak-1:8080/auth/realms/{OR_REALM}/protocol/openid-connect/token" + token_url = f"http://localhost:8080/auth/realms/{OR_REALM}/protocol/openid-connect/token" client_id = os.environ.get("OR_CLIENT_ID", "openremote") client_secret = os.environ.get("OR_CLIENT_SECRET", "QVTnyObwXdpQ0Vuc60kFSonidK49FiXb") data = urllib.parse.urlencode({