Skip to content

Semantic Error when saving EdgeModel #31

@jefcolbi

Description

@jefcolbi

Hi,
I have been trying to use nebula-carina on Django.

The following code

EdgeModel(src_vid=comradeship.user_asked.nebula_id, dst_vid=comradeship.user_accepted.nebula_id,
                  ranking=0, edge_type=ComradeshipGraphEdgeType(status=ComradeshipStatus.ACTIVE)).save()

throws the following error.

nebula_carina.ngql.errors.NGqlError: ERROR CODE: -1009 when executing NGQL [MATCH (v1)-[e:comradeship_graph_edge_type]->(v2) WHERE id(v1) == "U63" AND id(v2) == "U95" RETURN e;]
SemanticError: Space was not chosen

Here are my settings

NEBULA_SPACE = "ngoul_staging"

CARINA_SETTINGS = {
    "auto_create_default_space_with_vid_desc": "FIXED_STRING(32)",
    "default_space": NEBULA_SPACE,
    "max_connection_pool_size": 10,
    "model_paths": ["core.nebula_models"],
    "user_name": "root",
    "password": "nebula",
    "servers": ["127.0.0.1:9669"],
    "timezone_name": "UTC",
}

How to resolve this problem?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions