Commit ecfb1ac
fix(settings): degrade gracefully when the legal notice fetch fails
GET /settings/instance fetched the optional legal_notice_url from the
cloudery and propagated any error, turning the whole response into an
HTTP 500 whenever the cloudery was down or slow. Since the front-end
relies on this core route on nearly every page, it would then loop
retrying it.
The legal notice is a non-essential enrichment: log the error and omit
the field instead of failing the response, so the route keeps returning
the locally-available settings even when the cloudery is unreachable.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent af38aca commit ecfb1ac
2 files changed
Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
637 | 637 | | |
638 | 638 | | |
639 | 639 | | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
640 | 656 | | |
641 | 657 | | |
642 | 658 | | |
| |||
0 commit comments