{"record":{"id":"64887ba328cca75d","repo":"onetimesecret/onetimesecret","slug":"unable-to-update-brand-settings-please-try-again-64887b","errorCode":null,"errorMessage":"Unable to update brand settings. Please try again.","messagePattern":"Unable to update brand settings\\. Please try again\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/shared/stores/domainsStore.ts","lineNumber":370,"sourceCode":"  async function getBrandSettings(extid: string): Promise<BrandSettings> {\n    const response = await $api.get(`/api/domains/${extid}/brand`);\n    const result = gracefulParse(responseSchemas.brandSettings, response.data, 'BrandSettingsResponse');\n    if (!result.ok) {\n      throw new Error('Unable to load brand settings. Please try again.');\n    }\n    return result.data.record;\n  }\n\n  /**\n   * Update brand settings for a domain\n   */\n  async function updateBrandSettings(extid: string, settings: Partial<BrandSettings>) {\n    const response = await $api.put(`/api/domains/${extid}/brand`, {\n      brand: settings,\n    });\n    const result = gracefulParse(responseSchemas.brandSettings, response.data, 'BrandSettingsResponse');\n    if (!result.ok) {\n      throw new Error('Unable to update brand settings. Please try again.');\n    }\n    return result.data;\n  }\n\n  /**\n   * Update brand settings for a domain via PUT /:extid/brand endpoint\n   *\n   * Unlike updateBrandSettings() which returns only brand settings,\n   * this function returns the full domain object and updates store state.\n   */\n  async function updateDomainBrand(extid: string, brandUpdate: UpdateDomainBrandRequest) {\n    const response = await $api.put(`/api/domains/${extid}/brand`, brandUpdate);\n    const result = gracefulParse(responseSchemas.customDomain, response.data, 'CustomDomainResponse');\n    if (!result.ok) {\n      throw new Error('Unable to update domain brand. Please try again.');\n    }\n    if (!records.value) return result.data.record;\n","sourceCodeStart":352,"sourceCodeEnd":388,"githubUrl":"https://github.com/onetimesecret/onetimesecret/blob/f81295e41bc3e808a3dd2cbea03ef65401a662e4/src/shared/stores/domainsStore.ts#L352-L388","documentation":"Error \"Unable to update brand settings. Please try again.\" thrown in onetimesecret/onetimesecret.","triggerScenarios":"Thrown at src/shared/stores/domainsStore.ts:370 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Validate the brand settings payload (hex colors, allowed fonts, URLs) before submitting, then retry.","Check server logs for validation or persistence errors if it keeps failing."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f81295e41bc3e808a3dd2cbea03ef65401a662e4","analyzedAt":"2026-08-23T21:13:10.635Z","schemaVersion":2},"datasetVersion":"2026-08-24T02:17:37.098Z"}