dosubot[bot] commented on issue #642: URL: https://github.com/apache/incubator-hugegraph-toolchain/issues/642#issuecomment-2499744104
<!-- Answer --> The issue you're encountering seems to be related to the deserialization of the 'edges' field in the 'kneighbor' API response. The error message indicates that there is no String-argument constructor or factory method available to deserialize the edge data from a String value like 'S1:zhangsan>3>3>>S2:car2!4'. The `HugeEdge` class in the HugeGraph codebase does not have a constructor that directly takes a `String` as an argument. However, there are factory methods like `constructEdge` and `constructEdgeWithoutGraph` that take a `String` argument named `sortValues`, which might be relevant for constructing edges from string representations <sup>[[1]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/structure/HugeEdge.java)</sup>. To resolve this issue, you may need to implement a custom deserialization logic or modify the existing deserialization process to handle the string format of the edges. This could involve creating a factory method or constructor in the `Edge` class that can parse the string representation of an edge and create an `Edge` object accordingly. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
