{"record":{"id":"ab50979fd52cd7bd","repo":"hibiken/asynq","slug":"s-path-does-not-exist","errorCode":null,"errorMessage":"%s: path does not exist","messagePattern":"(.+?): path does not exist","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"asynq.go","lineNumber":528,"sourceCode":"\tif u.Scheme == \"rediss\" {\n\t\th, _, err := net.SplitHostPort(u.Host)\n\t\tif err != nil {\n\t\t\th = u.Host\n\t\t}\n\t\tredisConnOpt.TLSConfig = &tls.Config{ServerName: h}\n\t}\n\n\tredisConnOpt.Addr = u.Host\n\tredisConnOpt.Password = password\n\tredisConnOpt.DB = db\n\n\treturn redisConnOpt, nil\n}\n\nfunc parseRedisSocketURI(u *url.URL) (RedisConnOpt, error) {\n\tconst errPrefix = \"asynq: could not parse redis socket uri\"\n\tif len(u.Path) == 0 {\n\t\treturn nil, fmt.Errorf(\"%s: path does not exist\", errPrefix)\n\t}\n\tq := u.Query()\n\tvar db int\n\tvar err error\n\tif n := q.Get(\"db\"); n != \"\" {\n\t\tdb, err = strconv.Atoi(n)\n\t\tif err != nil {\n\t\t\treturn nil, fmt.Errorf(\"%s: query param `db` should be a number\", errPrefix)\n\t\t}\n\t}\n\tvar password string\n\tif v, ok := u.User.Password(); ok {\n\t\tpassword = v\n\t}\n\treturn RedisClientOpt{Network: \"unix\", Addr: u.Path, DB: db, Password: password}, nil\n}\n\nfunc parseRedisSentinelURI(u *url.URL) (RedisConnOpt, error) {","sourceCodeStart":510,"sourceCodeEnd":546,"githubUrl":"https://github.com/hibiken/asynq/blob/d135f1439bee74e989b7f9b41ecd542cc87f024a/asynq.go#L510-L546","documentation":"Guard in parseRedisSocketURI: a redis-socket: URI was given with an empty path, meaning no unix socket file was specified. Without a socket path there is no address to connect to, so ParseRedisURI fails with the 'asynq: could not parse redis socket uri' prefix.","triggerScenarios":"Thrown at asynq.go:528 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add a path component to the redis URI, e.g. 'redis-socket:/path/to/sock' instead of 'redis-socket:'","Verify the URI string passed to ParseRedisURI includes the socket file path after the scheme"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d135f1439bee74e989b7f9b41ecd542cc87f024a","analyzedAt":"2026-09-07T19:02:34.660Z","contentChangedAt":"2026-09-07T19:02:34.660Z","schemaVersion":2},"datasetVersion":"2026-09-16T09:17:16.951Z"}