diegosouzapw/OmniRoute · error · Error
Device ID is required
Error message
Device ID is required
What it means
Second field check in RaycastService.validateCredentials: deviceId (user.analyticsId) is empty after trimming. Local validation only — the caller omitted the device identifier Raycast pairs with the Bearer token for request attribution.
Solutions
- Read deviceId from Raycast local state (user.analyticsId / posthog distinctId)
- Require the deviceId field in the import form before submission
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/lib/oauth/services/raycast.ts:32 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/e1fbe71138bdffdb.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/oauth/services/raycast.ts:32
export class RaycastService {
validateCredentials(input: {
accessToken: string;
deviceId: string;
aid?: string;
signatureJwt?: string;
sigSecret?: string;
}): { aid: string } {
const accessToken = input.accessToken.trim();
const deviceId = input.deviceId.trim();
let aid = (input.aid || "").trim();
if (!aid && input.signatureJwt?.trim()) {
aid = decodeAidFromRaycastJwt(input.signatureJwt.trim()) || "";
}
if (!accessToken) throw new Error("Bearer token is required");
if (!deviceId) throw new Error("Device ID is required");
// AID is optional for current Raycast API — fall back to deviceId when not captured manually.
if (!aid) aid = deviceId;
return { aid };
}
async probeModels(credentials: {
accessToken: string;
deviceId: string;
aid: string;
sigSecret?: string;
}): Promise<RaycastModelEntry[]> {
return fetchRaycastModels({
accessToken: credentials.accessToken,
providerSpecificData: {
deviceId: credentials.deviceId,
aid: credentials.aid,View on GitHub (pinned to a179ffed5b)