Commit 930ddd0
fix(cloudflare): Treat OAuth probe 4xx as expired (#862)
Treat the refresh-token probe's client-side failures as an expected sign
that the stored Sentry token is no longer usable.
While investigating MCP-SERVER-F9Q, the upstream \/auth\/ probe was
returning 400 for invalid or expired bearer tokens. The refresh path
only treated 401 authentication failures as expected, so these 400
responses were being logged as issues even though they should fall
through to re-auth.
This broadens the probe guard to all ApiClientError responses and keeps
the regression coverage focused on the 400 probe behavior without
asserting on telemetry internals.
Fixes MCP-SERVER-F9Q
Co-authored-by: OpenAI Codex <noreply@openai.com>1 parent b2adac5 commit 930ddd0
2 files changed
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
80 | 97 | | |
81 | 98 | | |
82 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 6 | + | |
10 | 7 | | |
11 | 8 | | |
12 | 9 | | |
| |||
319 | 316 | | |
320 | 317 | | |
321 | 318 | | |
322 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
0 commit comments