{"record":{"id":"bcd61e554522d488","repo":"cayleygraph/cayley","slug":"expected-v-and-v-to-have-the-same-length","errorCode":null,"errorMessage":"Expected %#v and %#v to have the same length","messagePattern":"Expected %#v and %#v to have the same length","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"query/linkedql/steps/jsonld_util.go","lineNumber":52,"sourceCode":"\tsource = unwrapValue(unwrapSingle(source))\n\ttarget = unwrapValue(unwrapSingle(target))\n\tswitch s := source.(type) {\n\tcase string:\n\t\tt, ok := target.(string)\n\t\tif !ok {\n\t\t\treturn fmt.Errorf(\"Expected %v to be a string but instead received %T\", target, target)\n\t\t}\n\t\tif s != t {\n\t\t\treturn fmt.Errorf(\"Expected \\\"%v\\\" but instead received \\\"%v\\\"\", s, t)\n\t\t}\n\t\treturn nil\n\tcase ldArray:\n\t\tt, ok := target.(ldArray)\n\t\tif !ok {\n\t\t\treturn fmt.Errorf(\"Expected multiple values but instead received the single value: %#v\", target)\n\t\t}\n\t\tif len(s) != len(t) {\n\t\t\treturn fmt.Errorf(\"Expected %#v and %#v to have the same length\", s, t)\n\t\t}\n\titems:\n\t\tfor _, i := range s {\n\t\t\tfor _, tI := range t {\n\t\t\t\tif isomorphic(i, tI) == nil {\n\t\t\t\t\tcontinue items\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn fmt.Errorf(\"No matching values for the item %#v in %#v\", i, t)\n\t\t}\n\t\treturn nil\n\tcase ldMap:\n\t\tt, ok := target.(ldMap)\n\t\tif !ok {\n\t\t\treturn fmt.Errorf(\"Expected %#v to be a map or a slice with a single map but instead received %T\", target, target)\n\t\t}\n\t\tfor k, v := range s {\n\t\t\ttV, _ := t[k]","sourceCodeStart":34,"sourceCodeEnd":70,"githubUrl":"https://github.com/cayleygraph/cayley/blob/81dcd7d73e45136bc0d01802a8ba4685d8a533eb/query/linkedql/steps/jsonld_util.go#L34-L70","documentation":"Error \"Expected %#v and %#v to have the same length\" thrown in cayleygraph/cayley.","triggerScenarios":"Thrown at query/linkedql/steps/jsonld_util.go:52 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":"81dcd7d73e45136bc0d01802a8ba4685d8a533eb","analyzedAt":"2026-09-06T06:14:12.358Z","contentChangedAt":"2026-09-06T06:14:12.358Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}