{"record":{"id":"87dfdfd7d448c1a6","repo":"redis/redis-rb","slug":"where-source-must-be-left-or-right","errorCode":null,"errorMessage":"where_source must be 'LEFT' or 'RIGHT'","messagePattern":"where_source must be 'LEFT' or 'RIGHT'","errorType":"exception","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/redis/commands/lists.rb","lineNumber":421,"sourceCode":"\n        if count || exactly\n          order = order.to_s.upcase\n          raise ArgumentError, \"order must be 'OBO' or 'BULK'\" if order != \"OBO\" && order != \"BULK\"\n\n          [count ? \"COUNT\" : \"EXACTLY\", Integer(count || exactly), order]\n        elsif order\n          raise ArgumentError, \"order requires count or exactly\"\n        else\n          []\n        end\n      end\n\n      def _normalize_move_wheres(where_source, where_destination)\n        where_source      = where_source.to_s.upcase\n        where_destination = where_destination.to_s.upcase\n\n        if where_source != \"LEFT\" && where_source != \"RIGHT\"\n          raise ArgumentError, \"where_source must be 'LEFT' or 'RIGHT'\"\n        end\n\n        if where_destination != \"LEFT\" && where_destination != \"RIGHT\"\n          raise ArgumentError, \"where_destination must be 'LEFT' or 'RIGHT'\"\n        end\n\n        [where_source, where_destination]\n      end\n    end\n  end\nend\n","sourceCodeStart":403,"sourceCodeEnd":433,"githubUrl":"https://github.com/redis/redis-rb/blob/2ba9010b91dab9e0fde1fbae3a9aae003f8bc307/lib/redis/commands/lists.rb#L403-L433","documentation":"Error \"where_source must be 'LEFT' or 'RIGHT'\" thrown in redis/redis-rb.","triggerScenarios":"Thrown at lib/redis/commands/lists.rb:421 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass where_source: 'LEFT' or where_source: 'RIGHT' (or the corresponding symbol).","Fix the typo or casing in the where_source option value."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2ba9010b91dab9e0fde1fbae3a9aae003f8bc307","analyzedAt":"2026-08-23T03:54:57.017Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}