{"record":{"id":"6849863843033446","repo":"temporalio/temporal","slug":"invalid-url-scheme-s","errorCode":null,"errorMessage":"invalid URL scheme: %s","messagePattern":"invalid URL scheme: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"common/nexus/nexusrpc/client.go","lineNumber":171,"sourceCode":"// BaseURL and Service are required.\nfunc NewHTTPClient(options HTTPClientOptions) (*HTTPClient, error) {\n\tif options.HTTPCaller == nil {\n\t\toptions.HTTPCaller = http.DefaultClient.Do\n\t}\n\tif options.BaseURL == \"\" {\n\t\treturn nil, errors.New(\"empty BaseURL\")\n\t}\n\tif options.Service == \"\" {\n\t\treturn nil, errors.New(\"empty Service\")\n\t}\n\tvar baseURL *url.URL\n\tvar err error\n\tbaseURL, err = url.Parse(options.BaseURL)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif baseURL.Scheme != \"http\" && baseURL.Scheme != \"https\" {\n\t\treturn nil, fmt.Errorf(\"invalid URL scheme: %s\", baseURL.Scheme)\n\t}\n\tif options.Serializer == nil {\n\t\toptions.Serializer = nexus.DefaultSerializer()\n\t}\n\tif options.FailureConverter == nil {\n\t\toptions.FailureConverter = DefaultFailureConverter()\n\t}\n\treturn &HTTPClient{\n\t\tbaseHTTPClient: baseHTTPClient{\n\t\t\tserializer:       options.Serializer,\n\t\t\tfailureConverter: options.FailureConverter,\n\t\t\thttpCaller:       options.HTTPCaller,\n\t\t},\n\t\tserviceBaseURL: baseURL,\n\t\tservice:        options.Service,\n\t}, nil\n}\n","sourceCodeStart":153,"sourceCodeEnd":189,"githubUrl":"https://github.com/temporalio/temporal/blob/bde624efd13fbd3843654058db6d9c716166318b/common/nexus/nexusrpc/client.go#L153-L189","documentation":"Error \"invalid URL scheme: %s\" thrown in temporalio/temporal.","triggerScenarios":"Thrown at common/nexus/nexusrpc/client.go:171 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":"bde624efd13fbd3843654058db6d9c716166318b","analyzedAt":"2026-09-01T07:18:39.080Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}