dosubot[bot] commented on issue #2535: URL: https://github.com/apache/incubator-hugegraph/issues/2535#issuecomment-2094759394
<!-- Answer --> The error "Invalid vertex id '123e4567-e89b-12d3-a456-426614174000'" you're encountering when trying to construct an edge suggests a couple of potential issues to check: 1. **Vertex Existence**: Ensure that the vertices with IDs `123e4567-e89b-12d3-a456-426614174000` and `123e4567-e89b-12d3-a456-426614174001` actually exist in your graph. The error can occur if the vertex ID provided does not exist. 2. **Label Match**: If you're specifying vertex labels (`outVLabel` and `inVLabel`) when creating the edge, verify that these labels accurately match the labels of the existing vertices. A mismatch in labels can lead to this error. 3. **ID Strategy Consistency**: Confirm that your use of UUIDs as vertex IDs is consistent across your graph data. Inconsistencies in ID strategy application can cause confusion and errors. To troubleshoot, you might start by querying the vertices separately to confirm their existence and labels in the graph. This step can help pinpoint whether the issue lies with the vertex ID, label mismatch, or another aspect of your graph setup. <!-- Dosu Comment Footer --> <details> <summary> #### Details </summary> **Sources** - [hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/graph/EdgeAPI.java](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/graph/EdgeAPI.java) - [hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/id/IdGenerator.java](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/id/IdGenerator.java) - [hugegraph-loader/src/test/resources/customized_uuid/struct.json](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-loader/src/test/resources/customized_uuid/struct.json) - [hugegraph-client/src/main/java/org/apache/hugegraph/serializer/direct/util/Id.java](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-client/src/main/java/org/apache/hugegraph/serializer/direct/util/Id.java) - [hugegraph-client/src/main/java/org/apache/hugegraph/api/graph/EdgeAPI.java](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-client/src/main/java/org/apache/hugegraph/api/graph/EdgeAPI.java) - [hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/api/EdgeApiTest.java](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-test/src/main/java/org/apache/hugegraph/api/EdgeApiTest.java) - [content/en/docs/clients/restful-api/edge.md](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/en/docs/clients/restful-api/edge.md) - [hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/graph/VertexAPI.java](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/graph/VertexAPI.java) - [hugegraph-client/src/main/java/org/apache/hugegraph/api/graph/GraphAPI.java](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-client/src/main/java/org/apache/hugegraph/api/graph/GraphAPI.java) <br/> **About Dosu** This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. </details> *To continue the conversation, 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]
