Closed StewartJingga closed 1 year ago
Describe the bug When deleting an asset by its id, compass returned 500 error code. When hitting it for the second time, it returned asset not found.
500
It seems like the asset is removed but the API returns error on deletion.
To Reproduce Steps to reproduce the behavior:
DELETE '/v1beta1/assets/{ASSET_ID}'
Expected behavior
ok
Additional context found below log during deletion
time="2023-04-18T08:09:22Z" level=error msg="discovery error: DeleteDoc: query: {\"query\":{\"term\":{\"_id\": \"my-asset-id\"}}}: closed" ref=1681805362
elasticsearch
Describe the bug When deleting an asset by its id, compass returned
500
error code. When hitting it for the second time, it returned asset not found.It seems like the asset is removed but the API returns error on deletion.
To Reproduce Steps to reproduce the behavior:
DELETE '/v1beta1/assets/{ASSET_ID}'
Expected behavior
ok
status code on success.Additional context found below log during deletion
elasticsearch