Open History to see the last commit
1---
2id: HealthProblem
3title: HealthProblem
4---
5
6Defined in: [packages/db/src/types.ts:842](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L842)
7
8A problem on a health node. Its own fields are its newest failure's, and
9`errors` lists every failure of its frame that is still open, oldest
10first; the last entry is the newest. A source's `failureReason` lists each
11`reportError()` of the sync run since the problem began, once per error
12value; `reportHealthy(error)` removes that value's failure, and
13`reportHealthy()` ends it. An `error` from `fail()`, a failed first load, or a crash is one
14failure. A query's request error lists every request failure still open
15on its node, once per error value, and a failed replay adds each load it
16failed for.
17
18## Extends
19
20- [`CollectionErrorInfo`](CollectionErrorInfo.md)
21
22## Properties
23
24### at
25
26```ts
27readonly at: number;
28```
29
30Defined in: [packages/db/src/types.ts:827](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L827)
31
32Epoch milliseconds when the problem was reported.
33
34#### Inherited from
35
36[`CollectionErrorInfo`](CollectionErrorInfo.md).[`at`](CollectionErrorInfo.md#at)
37
38***
39
40### cause
41
42```ts
43readonly cause: unknown;
44```
45
46Defined in: [packages/db/src/types.ts:828](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L828)
47
48#### Inherited from
49
50[`CollectionErrorInfo`](CollectionErrorInfo.md).[`cause`](CollectionErrorInfo.md#cause)
51
52***
53
54### code?
55
56```ts
57readonly optional code: string;
58```
59
60Defined in: [packages/db/src/types.ts:825](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L825)
61
62#### Inherited from
63
64[`CollectionErrorInfo`](CollectionErrorInfo.md).[`code`](CollectionErrorInfo.md#code)
65
66***
67
68### errors
69
70```ts
71readonly errors: readonly CollectionErrorInfo[];
72```
73
74Defined in: [packages/db/src/types.ts:843](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L843)
75
76***
77
78### message
79
80```ts
81readonly message: string;
82```
83
84Defined in: [packages/db/src/types.ts:824](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L824)
85
86#### Inherited from
87
88[`CollectionErrorInfo`](CollectionErrorInfo.md).[`message`](CollectionErrorInfo.md#message)
89
90***
91
92### name
93
94```ts
95readonly name: string;
96```
97
98Defined in: [packages/db/src/types.ts:823](https://github.com/TanStack/db/blob/main/packages/db/src/types.ts#L823)
99
100#### Inherited from
101
102[`CollectionErrorInfo`](CollectionErrorInfo.md).[`name`](CollectionErrorInfo.md#name)