{"record":{"id":"461dcb4455f93e65","repo":"langgenius/dify","slug":"unknown-461dcb","errorCode":"Unknown","errorMessage":"server returned invalid verification_uri \"${raw}\"","messagePattern":"server returned invalid verification_uri \"(.+?)\"","errorType":"error_code","errorClass":"BaseError","httpStatus":null,"severity":"error","filePath":"cli/src/util/host.ts","lineNumber":74,"sourceCode":"    insecure: active.insecureTls === true,\n  }\n}\n\nexport function bareHost(raw: string): string {\n  try {\n    const u = new URL(raw)\n    return u.host !== '' ? u.host : raw\n  } catch {\n    return raw\n  }\n}\n\nexport function validateVerificationURI(raw: string, insecure: boolean): void {\n  let url: URL\n  try {\n    url = new URL(raw.trim())\n  } catch {\n    throw new BaseError({\n      code: ErrorCode.Unknown,\n      message: `server returned invalid verification_uri \"${raw}\"`,\n    })\n  }\n  if (url.protocol !== 'https:' && !(insecure && url.protocol === 'http:')) {\n    throw new BaseError({\n      code: ErrorCode.Unknown,\n      message: `server returned verification_uri with unsupported scheme \"${url.protocol.replace(':', '')}\"`,\n      hint: 'expected https:// (use --insecure to allow http:// on local-dev hosts)',\n    })\n  }\n  if (url.host === '')\n    throw new BaseError({\n      code: ErrorCode.Unknown,\n      message: `server returned verification_uri without host: \"${raw}\"`,\n    })\n}\n","sourceCodeStart":56,"sourceCodeEnd":92,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/cli/src/util/host.ts#L56-L92","documentation":"Error \"server returned invalid verification_uri \"${raw}\"\" thrown in langgenius/dify.","triggerScenarios":"Thrown at cli/src/util/host.ts:74 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ef8544b173fd6cd7a8e71df2cab576e52bebbfbc","analyzedAt":"2026-08-12T05:15:17.394Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}