onetimesecret/onetimesecret · error · Error
Unable to verify domain. Please try again.
Error message
Unable to verify domain. Please try again.
What it means
Error "Unable to verify domain. Please try again." thrown in onetimesecret/onetimesecret.
Source
Thrown at src/shared/stores/domainsStore.ts:206
count.value = result.data.count ?? 0;
return result.data;
}
async function getDomain(extid: string) {
const response = await $api.get(`/api/domains/${extid}`);
const result = gracefulParse(responseSchemas.customDomain, response.data, 'CustomDomainResponse');
if (!result.ok) {
throw new Error('Unable to load domain. Please try again.');
}
return result.data;
}
async function verifyDomain(extid: string) {
const response = await $api.post(`/api/domains/${extid}/verify`);
const result = gracefulParse(responseSchemas.customDomain, response.data, 'CustomDomainResponse');
if (!result.ok) {
throw new Error('Unable to verify domain. Please try again.');
}
return result.data;
}
/**
* Enqueue a forced favicon re-fetch for a domain (#3780).
*
* ASYNC: the endpoint returns a queued success immediately
* (`{ record: null, details: { msg } }`) — the new icon lands later via the
* background favicon worker. Unlike verifyDomain, the response carries no
* domain record to parse, so this mirrors verifyDomain's `$api.post` call but
* resolves void; callers show a "refreshing/queued" state and re-fetch rather
* than reading image bytes here. The backend overwrite-guard still protects a
* user-uploaded icon, so a forced refresh cannot clobber one.
*/
async function refreshFavicon(extid: string) {
await $api.post(`/api/domains/${extid}/icon/refresh`);
}View on GitHub (pinned to f81295e41b)
Solutions
- Confirm the verification TXT record is present and propagated (dig TXT) before retrying verification.
- Respect the DNS verification rate limit; wait before retrying after failed attempts.
When it happens
Trigger: Thrown at src/shared/stores/domainsStore.ts:206 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of onetimesecret/onetimesecret@f81295e41b (2026-08-23).
Data as JSON: /api/errors/507b2ee7db906140.
Report an issue: GitHub.