{"record":{"id":"accc938daf4d3bbd","repo":"AlistGo/alist","slug":"failed-to-create-client-w","errorCode":null,"errorMessage":"failed to create client: %w","messagePattern":"failed to create client: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"drivers/azure_blob/driver.go","lineNumber":67,"sourceCode":"\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to create credential: %w\", err)\n\t}\n\n\t// Check if Endpoint is just account name\n\tendpoint := d.Addition.Endpoint\n\tif accountName == endpoint {\n\t\tendpoint = fmt.Sprintf(\"https://%s.blob.core.windows.net/\", accountName)\n\t}\n\t// Initialize Azure Blob client with retry policy\n\tclient, err := azblob.NewClientWithSharedKeyCredential(endpoint, credential,\n\t\t&azblob.ClientOptions{ClientOptions: azcore.ClientOptions{\n\t\t\tRetry: policy.RetryOptions{\n\t\t\t\tMaxRetries: MaxRetries,\n\t\t\t\tRetryDelay: RetryDelay,\n\t\t\t},\n\t\t}})\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to create client: %w\", err)\n\t}\n\td.client = client\n\n\t// Ensure container exists or create it\n\tcontainerName := strings.Trim(d.Addition.ContainerName, \"/ \\\\\")\n\tif containerName == \"\" {\n\t\treturn fmt.Errorf(\"container name cannot be empty\")\n\t}\n\treturn d.createContainerIfNotExists(ctx, containerName)\n}\n\n// Drop releases resources associated with the Azure Blob client.\nfunc (d *AzureBlob) Drop(ctx context.Context) error {\n\td.client = nil\n\treturn nil\n}\n\n// List retrieves blobs and directories under the specified path.","sourceCodeStart":49,"sourceCodeEnd":85,"githubUrl":"https://github.com/AlistGo/alist/blob/843d9dc8149126976b2625911e45a4d3ffd6f2f5/drivers/azure_blob/driver.go#L49-L85","documentation":"azblob.NewClientWithSharedKeyCredential failed in Init, meaning the assembled endpoint URL is invalid (unparseable URL or not https) so the blob service client could not be constructed. Retry policy options are also passed here.","triggerScenarios":"Thrown at drivers/azure_blob/driver.go:67 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the underlying error details in the message, fix the indicated cause (credentials, network, or provider-side failure), and retry."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"843d9dc8149126976b2625911e45a4d3ffd6f2f5","analyzedAt":"2026-08-15T12:14:11.722Z","contentChangedAt":"2026-08-15T12:14:11.722Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}