mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-15 02:20:52 +02:00
allow graceful 404s (#2211)
This commit is contained in:
parent
1a9e5da7c0
commit
27e094d2ec
@ -61,7 +61,7 @@ export async function fetchSettingsSS(): Promise<CombinedSettings | null> {
|
|||||||
let enterpriseSettings: EnterpriseSettings | null = null;
|
let enterpriseSettings: EnterpriseSettings | null = null;
|
||||||
if (tasks.length > 1) {
|
if (tasks.length > 1) {
|
||||||
if (!results[1].ok) {
|
if (!results[1].ok) {
|
||||||
if (results[1].status !== 403) {
|
if (results[1].status !== 403 && results[1].status !== 404) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`fetchEnterpriseSettingsSS failed: status=${results[1].status} body=${await results[1].text()}`
|
`fetchEnterpriseSettingsSS failed: status=${results[1].status} body=${await results[1].text()}`
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user