yannick-beot-sp / vscode-sailpoint-identitynow

Visual Studio Code extension for SailPoint IdentityNow
MIT License
39 stars 17 forks source link

Unable to get sources due to error (id is already registered) #37

Closed jlazerus1 closed 1 year ago

jlazerus1 commented 1 year ago

When opening the sources folder, I receive the following error. I know what source this is in my instance but not sure what is causing this issue. I'm basically unable to use the plugin because of this for this environment. No other sources will load. Other things like Transforms, Workflows, Rules, etc are still working fine. I've tried reinstalling the plugin and I've even reinstalled VS code clean but still get this error.

Element with id 2c9180888360210a018361d4ba1c2579 is already registered

MacBook Pro M1 Max on Ventura 13.0.1. Plugin version v0.0.15.

yannick-beot-sp commented 1 year ago

The plugin is using the source id to define a unique id for the item. That would mean that the source id is not unique... Can you check with postman by calling {{api-url}}/v3/sources? How many sources do you have? Might be linked to paging.

jlazerus1 commented 1 year ago

I have 330 total sources.

yannick-beot-sp commented 1 year ago

Did it already work on this tenant? Do you have another tenant with more than 250 sources?

jlazerus1 commented 1 year ago

It did work previously. I don’t have another tenant with this many sources.

Jason Lazerus Infrastructure and Security Manager


From: yannick-beot-sp @.> Sent: Wednesday, December 21, 2022 12:06:49 PM To: yannick-beot-sp/vscode-sailpoint-identitynow @.> Cc: Lazerus, Jason @.>; Author @.> Subject: Re: [yannick-beot-sp/vscode-sailpoint-identitynow] Unable to get sources due to error (id is already registered) (Issue #37)

Did it already work on this tenant? Do you have another tenant with more than 250 sources? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread. Message ID: yannick-beot-sp/vscode-sailpoint-identitynow/issues/37/1361680108@ github. com ZjQcmQRYFpfptBannerStart This Message Is From an External Sender Use caution with links and attachments.

ZjQcmQRYFpfptBannerEnd

Did it already work on this tenant? Do you have another tenant with more than 250 sources?

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/yannick-beot-sp/vscode-sailpoint-identitynow/issues/37*issuecomment-1361680108__;Iw!!P1XWVzh8FQ!ybcqqKq04aWu1DfIyztgG-MPmGkQFEorOqx0V9AYdt_d-W0JYJMJezd7DrLhZclEH4ADex_UYS7IJ3YQqPUtqRROVAmo$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AUOJSQH4V3VVUI7AY4EOWBDWOM2KTANCNFSM6AAAAAATFXIWOY__;!!P1XWVzh8FQ!ybcqqKq04aWu1DfIyztgG-MPmGkQFEorOqx0V9AYdt_d-W0JYJMJezd7DrLhZclEH4ADex_UYS7IJ3YQqPUtqXk6RzsC$. You are receiving this because you authored the thread.Message ID: @.***>

======================================================= The information contained in this electronic communication is intended to be sent only to the stated recipient and may contain information that is confidential, privileged or otherwise protected from disclosure under applicable law. If the reader of this message is not the intended recipient or their agent, you are hereby notified that any dissemination, distribution or copying of the information is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

yannick-beot-sp commented 1 year ago

Me neither... I will see what I can do...

yannick-beot-sp commented 1 year ago

I have just created 350 sources and I did not have any issue while opening the "Sources" folder and displaying the 350+ sources. Can you try to get logs by:

  1. Go to Help > Toggle Developer Tools
  2. Clear the console
  3. Open your tenant and your sources folder

In the logs, you should have:

[Extension Host] > getChildren {collapsibleState: 1, label: 'Sources', contextValue: 'sources', tenantId: 'b2dae8810e6f40a7564871042c0361c2', tenantName:  …}
[Extension Host] > getSources
[Extension Host] endpoint = https://…/v3/sources?count=true&limit=250
[Extension Host] > getSessions ['b2dae8810e6f40a7564871042c0361c2']
[Extension Host] > getSessionByTenant b2dae8810e6f40a7564871042c0361c2
[Extension Host] WARNING: no token for tenant b2dae8810e6f40a7564871042c0361c2
[Extension Host] INFO: accessToken is expired. Updating Access Token
[Extension Host] > createAccessToken …
[Extension Host] Successfully logged in to IdentityNow  
[Extension Host] < getSessionByTenant for b2dae8810e6f40a7564871042c0361c2
[Extension Host] < getSessions
[Extension Host] < getChildren (56) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]
[Extension Host] > getTreeItem {collapsibleState: 1, label: 'XXX', tenantId: 'b2dae8810e6f40a7564871042c0361c2', tenantName: '…', id: 'b56e0b5aec65f3a33573d91bd25f8b50', …}
[Extension Host] after update {collapsibleState: 1, label: 'XXX', tenantId: 'b2dae8810e6f40a7564871042c0361c2', tenantName: '…', id: 'b56e0b5aec65f3a33573d91bd25f8b50', …}
[Extension Host] > getTreeItem {collapsibleState: 1, label: 'XXX', tenantId: 'b2dae8810e6f40a7564871042c0361c2', tenantName: '…', id: '8a8923a29e8b129a4a5d81456763684b', …}
[Extension Host] after update {collapsibleState: 1, label: 'XXX', tenantId: 'b2dae8810e6f40a7564871042c0361c2', tenantName: '…', id: '8a8923a29e8b129a4a5d81456763684b', …}
etc.

Try to look into the 350+ ids returned but the function getChildren if you have any duplicates for some reason.

jlazerus1 commented 1 year ago

And now it worked… Very strange because I’ve been having the issue for a week or so. I had someone else try and they were successful as well. Happy its working now though.

Thanks,

Jason

From: yannick-beot-sp @.> Date: Wednesday, December 21, 2022 at 5:21 PM To: yannick-beot-sp/vscode-sailpoint-identitynow @.> Cc: Lazerus, Jason @.>, Author @.> Subject: Re: [yannick-beot-sp/vscode-sailpoint-identitynow] Unable to get sources due to error (id is already registered) (Issue #37) I have just created 350 sources and I did not have any issue while opening the "Sources" folder and displaying the 350+ sources. Can you try to get logs by: Go to Help > Toggle Developer Tools Clear the console Open your tenant and your ZjQcmQRYFpfptBannerStart This Message Is From an External Sender Use caution with links and attachments. ZjQcmQRYFpfptBannerEnd

I have just created 350 sources and I did not have any issue while opening the "Sources" folder and displaying the 350+ sources. Can you try to get logs by:

  1. Go to Help > Toggle Developer Tools
  2. Clear the console
  3. Open your tenant and your sources folder

In the logs, you should have:

[Extension Host] > getChildren {collapsibleState: 1, label: 'Sources', contextValue: 'sources', tenantId: 'b2dae8810e6f40a7564871042c0361c2', tenantName: …}

[Extension Host] > getSources

[Extension Host] endpoint = https://…/v3/sources?count=true&limit=250

[Extension Host] > getSessions ['b2dae8810e6f40a7564871042c0361c2']

[Extension Host] > getSessionByTenant b2dae8810e6f40a7564871042c0361c2

[Extension Host] WARNING: no token for tenant b2dae8810e6f40a7564871042c0361c2

[Extension Host] INFO: accessToken is expired. Updating Access Token

[Extension Host] > createAccessToken …

[Extension Host] Successfully logged in to IdentityNow

[Extension Host] < getSessionByTenant for b2dae8810e6f40a7564871042c0361c2

[Extension Host] < getSessions

[Extension Host] < getChildren (56) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]

[Extension Host] > getTreeItem {collapsibleState: 1, label: 'XXX', tenantId: 'b2dae8810e6f40a7564871042c0361c2', tenantName: '…', id: 'b56e0b5aec65f3a33573d91bd25f8b50', …}

[Extension Host] after update {collapsibleState: 1, label: 'XXX', tenantId: 'b2dae8810e6f40a7564871042c0361c2', tenantName: '…', id: 'b56e0b5aec65f3a33573d91bd25f8b50', …}

[Extension Host] > getTreeItem {collapsibleState: 1, label: 'XXX', tenantId: 'b2dae8810e6f40a7564871042c0361c2', tenantName: '…', id: '8a8923a29e8b129a4a5d81456763684b', …}

[Extension Host] after update {collapsibleState: 1, label: 'XXX', tenantId: 'b2dae8810e6f40a7564871042c0361c2', tenantName: '…', id: '8a8923a29e8b129a4a5d81456763684b', …}

etc.

Try to look into the 350+ ids returned but the function getChildren if you have any duplicates for some reason.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/yannick-beot-sp/vscode-sailpoint-identitynow/issues/37*issuecomment-1362176500__;Iw!!P1XWVzh8FQ!yznykXZPtNIlPAi81iHFwSRL-JsC_A8dg5TmVoKHnWoGB3MMKm9xfhFlrkn8cnh5Gij23AYopNGOOfrZOI1Ak9y-3i1J$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AUOJSQGBJFTOSKQY6IZRNW3WON7FTANCNFSM6AAAAAATFXIWOY__;!!P1XWVzh8FQ!yznykXZPtNIlPAi81iHFwSRL-JsC_A8dg5TmVoKHnWoGB3MMKm9xfhFlrkn8cnh5Gij23AYopNGOOfrZOI1Ak4msDnoA$. You are receiving this because you authored the thread.Message ID: @.***>

======================================================= The information contained in this electronic communication is intended to be sent only to the stated recipient and may contain information that is confidential, privileged or otherwise protected from disclosure under applicable law. If the reader of this message is not the intended recipient or their agent, you are hereby notified that any dissemination, distribution or copying of the information is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

yannick-beot-sp commented 1 year ago

If it is working now, it is perfect 🤗 . Now you will know how to investigate if you have an issue again.