diff --git a/app/components/breadcrumbs.tsx b/app/components/breadcrumbs.tsx index 18b28c7a..5bd1c514 100644 --- a/app/components/breadcrumbs.tsx +++ b/app/components/breadcrumbs.tsx @@ -28,6 +28,8 @@ export async function ClusterBreadcrumbs({ const clusterDetails = await client.getCluster({ headers: { authorization: `Bearer ${await getToken()}` }, params: { clusterId }, + }).catch(() => { + return { status: 500, body: { error: "Failed to fetch cluster details" } } as const; }); if (clusterDetails.status !== 200) { diff --git a/bootstrap-go/go.mod b/bootstrap-go/go.mod index 5bd17c70..18b90ca2 100644 --- a/bootstrap-go/go.mod +++ b/bootstrap-go/go.mod @@ -3,7 +3,7 @@ module github.com/inferablehq/inferable/bootstrap-go go 1.23.2 require ( - github.com/inferablehq/inferable/sdk-go v0.1.29 + github.com/inferablehq/inferable/sdk-go v0.1.34 github.com/joho/godotenv v1.5.1 ) diff --git a/bootstrap-go/go.sum b/bootstrap-go/go.sum index 31a30001..3e39bdaa 100644 --- a/bootstrap-go/go.sum +++ b/bootstrap-go/go.sum @@ -4,8 +4,8 @@ github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMU github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/inferablehq/inferable/sdk-go v0.1.29 h1:RlupvPMAl9huRDqDrkwk+1yDjTZfvnJGU5hdQ4g1A8w= -github.com/inferablehq/inferable/sdk-go v0.1.29/go.mod h1:8m2iYD/rQyB56nyjqZLek/PsV8KniiCMzlWAV5wmjTA= +github.com/inferablehq/inferable/sdk-go v0.1.34 h1:SdENBU+y5WR1nfDcxPFPK/mpEV4E7bRNoIj3fiKT0jI= +github.com/inferablehq/inferable/sdk-go v0.1.34/go.mod h1:8m2iYD/rQyB56nyjqZLek/PsV8KniiCMzlWAV5wmjTA= github.com/invopop/jsonschema v0.12.0 h1:6ovsNSuvn9wEQVOyc72aycBMVQFKz7cPdMJn10CvzRI= github.com/invopop/jsonschema v0.12.0/go.mod h1:ffZ5Km5SWWRAIN6wbDXItl95euhFz2uON45H2qjYt+0= github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=