Bug: MetaAPI Account Deletion Fails with 404 Error
Description
When deleting an MT account via Javascript SDK, the API throws a 404 error even though the account is successfully deleted from MetaAPI.
Root Cause
The MetaAPI SDK's .remove() method internally calls .getAccount() to verify/refresh state during deletion. This internal GET call fails with 404 once the account begins deletion, throwing an exception even though the operation completes successfully.
Symptoms
- Account is deleted from MetaAPI dashboard ✓
- API returns
{"error": "metaapi delete failed"} with 500 status ✗
Bug: MetaAPI Account Deletion Fails with 404 Error
Description
When deleting an MT account via Javascript SDK, the API throws a 404 error even though the account is successfully deleted from MetaAPI.
Root Cause
The MetaAPI SDK's
.remove()method internally calls.getAccount()to verify/refresh state during deletion. This internal GET call fails with 404 once the account begins deletion, throwing an exception even though the operation completes successfully.Symptoms
{"error": "metaapi delete failed"}with 500 status ✗