yannick-beot-sp / vscode-sailpoint-identitynow

Visual Studio Code extension for SailPoint IdentityNow
MIT License
32 stars 16 forks source link

reset source seems to no longer work #85

Open dryfoj opened 3 months ago

dryfoj commented 3 months ago

Describe the bug Not sure if this is just me (another on my team having same issue), but reset source stopped working across the board in our sandbox (not sure about prod): Error running command vscode-sailpoint-identitynow.reset-source: Request failed with status code 400. This is likely caused by the extension that contributes vscode-sailpoint-identitynow.reset-source.

Note: Reset of entitlements does work Reset of accounts does not work: Error running command vscode-sailpoint-identitynow.reset-source-accounts: Request failed with status code 400. This is likely caused by the extension that contributes vscode-sailpoint-identitynow.reset-source-accounts.

To Reproduce Try reset source or reset accounts

Environment Version: 1.90.0 (Universal) Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573 Date: 2024-06-04T19:34:44.157Z (1 wk ago) Electron: 29.4.0 ElectronBuildId: 9593362 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Darwin x64 23.5.0

Logs

  1. Go to Help > Toggle Developer Tools. This option is greyed out for me and I cannot do for some reason

Additional context I have not been able to test this in our production instance, just sandbox.

dryfoj commented 3 months ago

Test the API call via postman and issue appears to be the API level so perhaps not a bug here: {{baseUrl}}/beta/sources/:id/remove-accounts { "detailCode": "400.1 Bad request content", "trackingId": "xxxxxx", "messages": [ { "locale": "en-US", "localeOrigin": "DEFAULT", "text": "Action \"Remove Source Accounts\" cannot be performed on [xxxxxx, xxxxxx]" }, { "locale": "und", "localeOrigin": "REQUEST", "text": "Action \"Remove Source Accounts\" cannot be performed on [xxxxxx, xxxxxxxxxx]" } ], "causes": [] }

yannick-beot-sp commented 3 months ago

Yes, There is a high chance that one the account is also owner of some object. I'll try to have a better error message, to have at least the "text" property. Unfortunately, this is not documented and not always easy to reproduce...

Le ven. 14 juin 2024 à 17:30, James Dryfoos @.***> a écrit :

Test the API call via postman and issue appears to be the API level so perhaps not a bug here: {{baseUrl}}/beta/sources/:id/remove-accounts { "detailCode": "400.1 Bad request content", "trackingId": "xxxxxx", "messages": [ { "locale": "en-US", "localeOrigin": "DEFAULT", "text": "Action "Remove Source Accounts" cannot be performed on [xxxxxx, xxxxxx]" }, { "locale": "und", "localeOrigin": "REQUEST", "text": "Action "Remove Source Accounts" cannot be performed on [xxxxxx, xxxxxxxxxx]" } ], "causes": [] }

— Reply to this email directly, view it on GitHub https://github.com/yannick-beot-sp/vscode-sailpoint-identitynow/issues/85#issuecomment-2168276924, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATUL7LVANPMEXYBEHZS6EWLZHMECBAVCNFSM6AAAAABJKRELSSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYGI3TMOJSGQ . You are receiving this because you are subscribed to this thread.Message ID: <yannick-beot-sp/vscode-sailpoint-identitynow/issues/85/2168276924@ github.com>