Hey All, I am trying to build an emitter that will...
# troubleshoot
f
Hey All, I am trying to build an emitter that will update the schema field terms,the get_aspect_v2 func throwing GMS - 404 resource not found exception e. I have validated the URN of the dataset and everything looks fine. can you suggest please?
e
hi @flaky-soccer-57765 how to try it? (parameters)
Copy code
gms_endpoint = "http(s)://gms_host:8080"
graph = DataHubGraph(DatahubClientConfig(server=gms_endpoint))
current_editable_schema_metadata = graph.get_aspect_v2(
    entity_urn=dataset_urn,
    aspect="editableSchemaMetadata",
    aspect_type=EditableSchemaMetadataClass,
)
f
@enough-fish-5682 yes I am using the same code to emit the data. However the currenteditablemetadaschema returns none for the dataset_urn I am passing. Upon debugging I realized that the server sending 404 resource not found error
get_aspect_V2 : aspect-> EditableSchemaMetadata returns 404 / SchemaMetadata returns 200 but fails eventually. Does that mean the dataset has no editable metadata in it?