SalesforceLabs / OrgCheck

Org Check is an easy-to-install and easy-to-use Salesforce application in order to quickly analyze your org and its technical debt.
MIT License
129 stars 28 forks source link

TAB object-information REQUEST_LIMIT_EXCEEDED: ConcurrentRequests Limit exceeded. #432

Closed githubuser12209 closed 3 weeks ago

githubuser12209 commented 3 months ago

Issue Description

REQUEST_LIMIT_EXCEEDED: ConcurrentRequests (Concurrent API Requests) Limit exceeded. at r.getError (https://mysandbox--orgcheck.sandbox.vf.force.com/resource/1722601381000/orgcheck__OrgCheck_SR/js/jsforce.js:1:72641) at eval (https://mysandbox--orgcheck.sandbox.vf.force.com/resource/1722601381000/orgcheck__OrgCheck_SR/js/jsforce.js:1:71009) at eval (https://mysandbox--orgcheck.sandbox.vf.force.com/resource/1722601381000/orgcheck__OrgCheck_SR/js/jsforce.js:1:229493) at eval (https://mysandbox--orgcheck.sandbox.vf.force.com/resource/1722601381000/orgcheck__OrgCheck_SR/js/jsforce.js:1:229521) at o (https://mysandbox--orgcheck.sandbox.vf.force.com/resource/1722601381000/orgcheck__OrgCheck_SR/js/jsforce.js:1:104504) at MutationObserver. (https://static.lightning.force.com/cs339/auraFW/javascript/eGx3MHlRT1lEMUpQaWVxbGRUM1h0Z2hZX25NdHFVdGpDN3BnWlROY1ZGT3cyNTAuOC4zLTYuNC41/aura_prod.js:92:91749) at e. (https://static.lightning.force.com/cs339/auraFW/javascript/eGx3MHlRT1lEMUpQaWVxbGRUM1h0Z2hZX25NdHFVdGpDN3BnWlROY1ZGT3cyNTAuOC4zLTYuNC41/aura_prod.js:46:4694)

Steps to replicate Once I select 'Standard Object' and Select Account and click Apply the above error occurs

githubuser12209 commented 3 months ago

Just to update the org is 10Yrs + , we have lot of functionality so lot of components in the org. Not sure if this limit exceeded due to that reason

VinceFINET commented 3 months ago

Thank you for logging this issue. Do you have the same issue somewhere else on the app? like when hitting the custom fields tab? Do you have the same issue with other objects? Can you screenshot the progress dialogbox with the OrgCheck mascot moving, so i can see the steps you go throught... THANK YOU!

VinceFINET commented 3 months ago

Internal discussion --> Please check JSForce.Connection option parameter called "maxRequest" see. https://jsforce.github.io/jsforce/doc/Connection.html

VinceFINET commented 3 months ago

https://developer.salesforce.com/docs/atlas.en-us.234.0.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_platform_apexgov.htm

VinceFINET commented 3 months ago

by default the value is 10 for this option in JSForce

image

and in the code we set it to 20. may need to reconsider this override setting to solve this issue.

VinceFINET commented 3 months ago

Please @githubuser12209 tell me if the upgrade changed something in your 10-year-old org (after a refresh of your cache/browser) Thank you !!

githubuser12209 commented 2 months ago

Thank you for logging this issue. Do you have the same issue somewhere else on the app? like when hitting the custom fields tab? Do you have the same issue with other objects? Can you screenshot the progress dialogbox with the OrgCheck mascot moving, so i can see the steps you go throught... THANK YOU!

Hi @VinceFINET - Pls find the screenshot as requested - Step 1 (Initial screen after I select the Lead Object Only): image

Step 2: (In few mins, I get the below error )

image

Even if I select Apex Class, Same issue is present for APEX classes as well -

image

githubuser12209 commented 2 months ago

by default the value is 10 for this option in JSForce image

and in the code we set it to 20. may need to reconsider this override setting to solve this issue.

@VinceFINET Can you pls tell me where I can change this settings ? In installed the package but dont find any settings page to change the same , is it in some Apex Class , can you share the details ?

githubuser12209 commented 2 months ago

Please @githubuser12209 tell me if the upgrade changed something in your 10-year-old org (after a refresh of your cache/browser) Thank you !!

@VinceFINET @RubenHalman Sorry I was on holiday for some days, if you can get back to my quote queries , I will try that out and update accordingly

masenk commented 2 months ago

I just upgraded to Beryllium 4.7 today and got the same error. I had everything selected, and I wanted to look at profiles and permissions but it didn't work.

Screenshot 2024-08-21 at 5 04 35 PM
VinceFINET commented 2 months ago

by default the value is 10 for this option in JSForce image and in the code we set it to 20. may need to reconsider this override setting to solve this issue.

@VinceFINET Can you pls tell me where I can change this settings ? In installed the package but dont find any settings page to change the same , is it in some Apex Class , can you share the details ?

not a setting that you can change at the moment it's in the code and can't be changed by org check users...

VinceFINET commented 2 months ago

not the same issue! initially you had "REQUEST_LIMIT_EXCEEDED: ConcurrentRequests" and now you have "INVALID_SESSIONID"

the later means are using org check with a token that expires.

can you close your borther, connect to your org then switch ot org check and tell us if this solved the issue.

Thank you

VinceFINET commented 2 months ago

Update us when you have time. Thank you.

VinceFINET commented 2 months ago

as this was also a bug in the code, please DM me your postal address so i can send you an Org Check sticker. or by email --> obviously not here please !!

githubuser12209 commented 1 month ago

not the same issue! initially you had "REQUEST_LIMIT_EXCEEDED: ConcurrentRequests" and now you have "INVALID_SESSIONID"

the later means are using org check with a token that expires.

can you close your borther, connect to your org then switch ot org check and tell us if this solved the issue.

Thank you

Hi Vincent , my issue is still with the request time limit haven't faced the token expiration issue. The token expiration issue is for @masenk

githubuser12209 commented 1 month ago

@VinceFINET This is the error I faced - REQUEST_LIMIT_EXCEEDED: ConcurrentRequests Limit exceeded. , can you tell me if there is a way to resolve this ?

githubuser12209 commented 1 month ago

as this was also a bug in the code, please DM me your postal address so i can send you an Org Check sticker. or by email --> obviously not here please !!

I did via email , thank you!

VinceFINET commented 1 month ago

I just upgraded to Beryllium 4.7 today and got the same error. I had everything selected, and I wanted to look at profiles and permissions but it didn't work.

Screenshot 2024-08-21 at 5 04 35 PM

@masenk this error is documented here: https://salesforcelabs.github.io/OrgCheck/installation/ with a solution to it.

image

as this is not the same error as @githubuser12209 if you still have it, please create another issue. THANK YOU!

VinceFINET commented 1 month ago

issue with the apex class tab is resolved via this ticket https://github.com/SalesforceLabs/OrgCheck/issues/433 (you have to wait for me to package it!)

VinceFINET commented 1 month ago

about the DurableId issue you have on the Lead object.

Thank you @githubuser12209

githubuser12209 commented 1 month ago

@VinceFINET Not specific to Lead Object, this is happening for all objects even those objects which have very minimal fields and data as well.

Here is the entire stack tree that I received -

TypeError: Cannot read properties of null (reading 'DurableId') at eval (modules/orgcheck/orgcheckApp.js:3:133383) at eval (modules/orgcheck/orgcheckApp.js:3:90215) at Generator.next () at Ds (modules/orgcheck/orgcheckApp.js:3:88668) at n (modules/orgcheck/orgcheckApp.js:3:88871) at eval (modules/orgcheck/orgcheckApp.js:3:88932) at eval (eval at (https://static.lightning.force.com/cs339/auraFW/javascript/eGx3MHlRT1lEMUpQaWVxbGRUM1h0Z2hZX25NdHFVdGpDN3BnWlROY1ZGT3cyNTAuOC40LTYuNC41/aura_prod.js:1:1), :3:23715) at en. (https://static.lightning.force.com/cs339/auraFW/javascript/eGx3MHlRT1lEMUpQaWVxbGRUM1h0Z2hZX25NdHFVdGpDN3BnWlROY1ZGT3cyNTAuOC40LTYuNC41/aura_prod.js:105:67030) at new Promise () at https://static.lightning.force.com/cs339/auraFW/javascript/eGx3MHlRT1lEMUpQaWVxbGRUM1h0Z2hZX25NdHFVdGpDN3BnWlROY1ZGT3cyNTAuOC40LTYuNC41/aura_prod.js:105:85785

Screenshot -

image

The entire highlighted RED part I have pasted above .

VinceFINET commented 3 weeks ago

Can you try the following SOQL query from the tooling api:

SELECT Id, Name, ApiVersion, Status, NamespacePrefix, EntityDefinition.QualifiedApiName, 
      EntityDefinition.DurableId, CreatedDate, LastModifiedDate 
FROM ApexTrigger 
WHERE EntityDefinitionId = NULL

I believe in some case the EntityDefinition relationship is empty so if I add this = NULL statement that could solve the issue...

githubuser12209 commented 3 weeks ago

Hi ,

I got zero records while executing the above SOQL Query

[image: image.png]

And if I remove the where condition , I got around 582 records

[image: image.png]

On Mon, 14 Oct 2024 at 22:51, Vincent FINET @.***> wrote:

Can you try the following SOQL query from the tooling api:

SELECT Id, Name, ApiVersion, Status, NamespacePrefix, EntityDefinition.QualifiedApiName, EntityDefinition.DurableId, CreatedDate, LastModifiedDate FROM ApexTrigger WHERE EntityDefinitionId = NULL

I believe in some case the EntityDefinition relationship is empty so if I add this = NULL statement that could solve the issue...

— Reply to this email directly, view it on GitHub https://github.com/SalesforceLabs/OrgCheck/issues/432#issuecomment-2411836105, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY5VOOL2TSU276QCH5JEFODZ3P4RDAVCNFSM6AAAAABMD4ETWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJRHAZTMMJQGU . You are receiving this because you were mentioned.Message ID: @.***>

githubuser12209 commented 3 weeks ago

@VinceFINET shall i uninstall the old one and download the new one, where can i find the updated code link which i can install in my sandox

VinceFINET commented 3 weeks ago

I will push the update tomorrow if it’s ok for you

Le mar. 15 oct. 2024 à 15:53, githubuser12209 @.***> a écrit :

@VinceFINET https://github.com/VinceFINET shall i uninstall the old one and download the new one, where can i find the updated code link which i can install in my sandox

— Reply to this email directly, view it on GitHub https://github.com/SalesforceLabs/OrgCheck/issues/432#issuecomment-2413987292, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA47R26PONYY5S6IWIS6SN3Z3UM5XAVCNFSM6AAAAABMD4ETWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJTHE4DOMRZGI . You are receiving this because you were mentioned.Message ID: @.***>

githubuser12209 commented 3 weeks ago

Sure thank you very much

On Wed, Oct 16, 2024, 12:47 AM Vincent FINET @.***> wrote:

I will push the update tomorrow if it’s ok for you

Le mar. 15 oct. 2024 à 15:53, githubuser12209 @.***> a écrit :

@VinceFINET https://github.com/VinceFINET shall i uninstall the old one and download the new one, where can i find the updated code link which i can install in my sandox

— Reply to this email directly, view it on GitHub < https://github.com/SalesforceLabs/OrgCheck/issues/432#issuecomment-2413987292>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AA47R26PONYY5S6IWIS6SN3Z3UM5XAVCNFSM6AAAAABMD4ETWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJTHE4DOMRZGI>

. You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/SalesforceLabs/OrgCheck/issues/432#issuecomment-2414820158, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY5VOONE3TBK7ZB6OMVMIU3Z3VS5DAVCNFSM6AAAAABMD4ETWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJUHAZDAMJVHA . You are receiving this because you were mentioned.Message ID: @.***>

VinceFINET commented 3 weeks ago

You can check your org by now!

githubuser12209 commented 2 weeks ago

thanks @VinceFINET , but on custom fields now I am getting Access Denied, shall I log a separate issue for that -

ERROR_HTTP_400: Access Declined at r.getError (eval at (eval at (https://static.lightning.force.com/cs339/auraFW/javascript/ZzhjQmRxMXdrdzhvS0RJMG5qQVdxQTdEcXI0cnRHWU0zd2xrUnFaakQxNXc5LjMyMC4y/aura_prod.js:1:1)), :3:72751) at eval (eval at (eval at (https://static.lightning.force.com/cs339/auraFW/javascript/ZzhjQmRxMXdrdzhvS0RJMG5qQVdxQTdEcXI0cnRHWU0zd2xrUnFaakQxNXc5LjMyMC4y/aura_prod.js:1:1)), :3:71119) at eval (eval at (eval at (https://static.lightning.force.com/cs339/auraFW/javascript/ZzhjQmRxMXdrdzhvS0RJMG5qQVdxQTdEcXI0cnRHWU0zd2xrUnFaakQxNXc5LjMyMC4y/aura_prod.js:1:1)), :3:229610) at eval (eval at (eval at (https://static.lightning.force.com/cs339/auraFW/javascript/ZzhjQmRxMXdrdzhvS0RJMG5qQVdxQTdEcXI0cnRHWU0zd2xrUnFaakQxNXc5LjMyMC4y/aura_prod.js:1:1)), :3:229638) at Proxy.o (eval at (eval at (https://static.lightning.force.com/cs339/auraFW/javascript/ZzhjQmRxMXdrdzhvS0RJMG5qQVdxQTdEcXI0cnRHWU0zd2xrUnFaakQxNXc5LjMyMC4y/aura_prod.js:1:1)), :3:104621) at eval (eval at (https://static.lightning.force.com/cs339/auraFW/javascript/ZzhjQmRxMXdrdzhvS0RJMG5qQVdxQTdEcXI0cnRHWU0zd2xrUnFaakQxNXc5LjMyMC4y/aura_prod.js:1:1), :3:23715) at en.applyTrapForThreeOrMoreArgs (https://static.lightning.force.com/cs339/auraFW/javascript/ZzhjQmRxMXdrdzhvS0RJMG5qQVdxQTdEcXI0cnRHWU0zd2xrUnFaakQxNXc5LjMyMC4y/aura_prod.js:105:69972) at en. (https://static.lightning.force.com/cs339/auraFW/javascript/ZzhjQmRxMXdrdzhvS0RJMG5qQVdxQTdEcXI0cnRHWU0zd2xrUnFaakQxNXc5LjMyMC4y/aura_prod.js:105:68756) at e. (https://static.lightning.force.com/cs339/auraFW/javascript/ZzhjQmRxMXdrdzhvS0RJMG5qQVdxQTdEcXI0cnRHWU0zd2xrUnFaakQxNXc5LjMyMC4y/aura_prod.js:46:4529)

VinceFINET commented 2 weeks ago

No need, this has been already reported to me and is logged as #436 This issue is only happening in Chrome when the browser has no more resources to send requests to the Salesforce API. I know how to handle it now as i know the root cause. As a workaround you can use Safari or Firefox!

githubuser12209 commented 2 weeks ago

@VinceFINET same problem i am facing in firefox as well, I will track the logged issue , once you made the update i will check again, thanks !

image