Skip to content

Commit 365f31b

Browse files
Fix timeout on proxy client
1 parent a2e0086 commit 365f31b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

frontend/src/pages/pages-config-editor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ export class PageConfigEditor extends LitElement {
412412
></or-mwc-input>
413413
414414
<or-mwc-input
415+
style="max-width: 48px;"
415416
type="${InputType.BUTTON}"
416417
icon="delete"
417418
@click="${() => this.handleDeleteRegressor(index)}"

src/service_ml_forecast/clients/openremote_proxy_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import httpx
12
from service_ml_forecast.clients.openremote.openremote_client import OAuthTokenResponse, OpenRemoteClient
23

34

@@ -17,6 +18,7 @@ def __init__(self, openremote_url: str, token: str):
1718
self.keycloak_url = "" # Not used in proxy client
1819
self.service_user = "" # Not used in proxy client
1920
self.service_user_secret = "" # Not used in proxy client
21+
self.timeout = httpx.Timeout(60.0)
2022

2123
# Set up token directly
2224
self.oauth_token = OAuthTokenResponse(

0 commit comments

Comments
 (0)