{"record":{"id":"74584b98ad719fda","repo":"langgenius/dify","slug":"errorcode-unknown","errorCode":"ErrorCode.Unknown","errorMessage":"server returned verification_uri with unsupported scheme \"${url.protocol.replace(':', '')}\"","messagePattern":"server returned verification_uri with unsupported scheme \"(.+?)\"","errorType":"exception","errorClass":"BaseError","httpStatus":null,"severity":"error","filePath":"cli/src/util/host.ts","lineNumber":80,"sourceCode":"    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":62,"sourceCodeEnd":92,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/cli/src/util/host.ts#L62-L92","documentation":"Error \"server returned verification_uri with unsupported scheme \"${url.protocol.replace(':', '')}\"\" thrown in langgenius/dify.","triggerScenarios":"Thrown at cli/src/util/host.ts:80 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"}