Skip to content

Commit 910d58b

Browse files
committed
refactor: replace HTML table + SVG icons with plain Markdown table
1 parent 7a51218 commit 910d58b

File tree

1 file changed

+12
-101
lines changed

1 file changed

+12
-101
lines changed

src/content/docs/troubleshooting/network-errors.mdx

Lines changed: 12 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -35,107 +35,18 @@ transient and may succeed on a second attempt.
3535

3636
The table below summarises which error types trigger a retry:
3737

38-
<table>
39-
<thead>
40-
<tr>
41-
<th>Error type</th>
42-
<th>Example</th>
43-
<th>Retried?</th>
44-
</tr>
45-
</thead>
46-
<tbody>
47-
<tr>
48-
<td>Timeout</td>
49-
<td><code>Network error: operation timed out</code></td>
50-
<td>
51-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-label="Yes" style="color: #22c55e">
52-
<polyline points="20 6 9 17 4 12"/>
53-
</svg>
54-
</td>
55-
</tr>
56-
<tr>
57-
<td>Too Many Requests (429)</td>
58-
<td><code>Network error: too many requests</code></td>
59-
<td>
60-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-label="Yes" style="color: #22c55e">
61-
<polyline points="20 6 9 17 4 12"/>
62-
</svg>
63-
</td>
64-
</tr>
65-
<tr>
66-
<td>Server error (5xx)</td>
67-
<td><code>Response: 503 Service Unavailable</code></td>
68-
<td>
69-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-label="Yes" style="color: #22c55e">
70-
<polyline points="20 6 9 17 4 12"/>
71-
</svg>
72-
</td>
73-
</tr>
74-
<tr>
75-
<td>Request timeout (408)</td>
76-
<td><code>Response: 408 Request Timeout</code></td>
77-
<td>
78-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-label="Yes" style="color: #22c55e">
79-
<polyline points="20 6 9 17 4 12"/>
80-
</svg>
81-
</td>
82-
</tr>
83-
<tr>
84-
<td>Incomplete response</td>
85-
<td><code>Network error: connection closed before message completed</code></td>
86-
<td>
87-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-label="Yes" style="color: #22c55e">
88-
<polyline points="20 6 9 17 4 12"/>
89-
</svg>
90-
</td>
91-
</tr>
92-
<tr>
93-
<td>Connection reset / aborted</td>
94-
<td><code>Network error: Connection reset by server</code></td>
95-
<td>
96-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-label="Yes" style="color: #22c55e">
97-
<polyline points="20 6 9 17 4 12"/>
98-
</svg>
99-
</td>
100-
</tr>
101-
<tr>
102-
<td>Connection refused / error</td>
103-
<td><code>Network error: connection refused</code></td>
104-
<td>
105-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-label="No" style="color: #ef4444">
106-
<line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/>
107-
</svg>
108-
</td>
109-
</tr>
110-
<tr>
111-
<td>Certificate / TLS error</td>
112-
<td><code>Network error: invalid certificate</code></td>
113-
<td>
114-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-label="No" style="color: #ef4444">
115-
<line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/>
116-
</svg>
117-
</td>
118-
</tr>
119-
<tr>
120-
<td>Redirect error</td>
121-
<td><code>Failed: Too many redirects</code></td>
122-
<td>
123-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-label="No" style="color: #ef4444">
124-
<line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/>
125-
</svg>
126-
</td>
127-
</tr>
128-
<tr>
129-
<td>Client error (4xx, except 408/429)</td>
130-
<td><code>Response: 404 Not Found</code></td>
131-
<td>
132-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-label="No" style="color: #ef4444">
133-
<line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/>
134-
</svg>
135-
</td>
136-
</tr>
137-
</tbody>
138-
</table>
38+
| Error type | Example | Retried? |
39+
| ---------------------------------- | -------------------------------------------------------------- | -------- |
40+
| Timeout | `Network error: operation timed out` ||
41+
| Too Many Requests (429) | `Network error: too many requests` ||
42+
| Server error (5xx) | `Response: 503 Service Unavailable` ||
43+
| Request timeout (408) | `Response: 408 Request Timeout` ||
44+
| Incomplete response | `Network error: connection closed before message completed` ||
45+
| Connection reset / aborted | `Network error: Connection reset by server` ||
46+
| Connection refused / error | `Network error: connection refused` ||
47+
| Certificate / TLS error | `Network error: invalid certificate` ||
48+
| Redirect error | `Failed: Too many redirects` ||
49+
| Client error (4xx, except 408/429) | `Response: 404 Not Found` ||
13950

14051
### Configuring retries
14152

0 commit comments

Comments
 (0)