SOLVED
Home

CSOM throwing random error

%3CLINGO-SUB%20id%3D%22lingo-sub-161518%22%20slang%3D%22en-US%22%3ECSOM%20throwing%20random%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-161518%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI've%20been%20using%20CSOM%20Framework%20for%20several%20months%20without%20important%20problems...%20Since%20a%20few%20weeks%20ago%2C%20I've%20been%20getting%20%22Error%20429%22%20sometimes%20when%20one%20of%20my%20processes%20executes.%20Due%20to%20the%20fact%20that%20sometimes%20it%20works%20fine%20and%20sometimes%20it%20doesn't%2C%20I%20don't%20know%20what%20the%20problem%20cause%20is.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20error%20I'm%20getting%20is%20this%20one%3A%26nbsp%3B%3CSPAN%3ESystem.Net.WebException%3A%20The%20remote%20server%20returned%20an%20error%3A%20(429).%20at%20System.Net.HttpWebRequest.%3C%2FSPAN%3E%3CWBR%20%2F%3E%3CSPAN%3EGetResponse()%20at%20Microsoft.SharePoint.Client.%3C%2FSPAN%3E%3CWBR%20%2F%3E%3CSPAN%3ESPWebRequestExecutor.Execute()%20at%20Microsoft.SharePoint.Client.%3C%2FSPAN%3E%3CWBR%20%2F%3E%3CSPAN%3EClientRequest.%3C%2FSPAN%3E%3CWBR%20%2F%3E%3CSPAN%3EExecuteQueryToServer(%3C%2FSPAN%3E%3CWBR%20%2F%3E%3CSPAN%3EChunkStringBuilder%20sb)%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFor%20the%20record%2C%20I%20get%20this%20error%20when%20I%20try%20to%20see%20a%20Resource's%20assignments.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThanks%20a%20lot.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-161518%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOnline%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EProject%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-162187%22%20slang%3D%22en-US%22%3ERe%3A%20CSOM%20throwing%20random%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-162187%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20your%20answer%2C%20Brian.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'll%20see%20how%20I%20can%20customize%20my%20code%20so%20that%20it%20doesn't%20get%20throttled.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-161984%22%20slang%3D%22en-US%22%3ERe%3A%20CSOM%20throwing%20random%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-161984%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%20color%3D%22%23000000%22%3EHi%20%3CA%20class%3D%22name%20no-underline-anchor%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F120573%22%20target%3D%22_blank%22%3EGerm%C3%A1n%3C%2FA%3E%2C%20429%20normally%20means%20you%20are%20being%20throttled%20-%20are%20you%20making%20a%20lot%20of%20calls%3F%20This%20article%20explains%20throttling%20in%20SHarePoint%20Online%20which%20also%20applies%20to%20Project%20Online%20-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fgeneral-development%2Fhow-to-avoid-getting-throttled-or-blocked-in-sharepoint-online%26nbsp%3B%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fgeneral-development%2Fhow-to-avoid-getting-throttled-or-blocked-in-sharepoint-online%3C%2FA%3E%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%23000000%22%3EBest%20regards%2C%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%23000000%22%3EBrian%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Germán Torres
Occasional Contributor

Hi there!

 

I've been using CSOM Framework for several months without important problems... Since a few weeks ago, I've been getting "Error 429" sometimes when one of my processes executes. Due to the fact that sometimes it works fine and sometimes it doesn't, I don't know what the problem cause is.

 

The error I'm getting is this one: System.Net.WebException: The remote server returned an error: (429). at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb)

 

For the record, I get this error when I try to see a Resource's assignments.

 

Thanks a lot.

2 Replies
Solution

Hi Germán, 429 normally means you are being throttled - are you making a lot of calls? This article explains throttling in SHarePoint Online which also applies to Project Online - https://docs.microsoft.com/en-us/sharepoint/dev/general-development/how-to-avoid-getting-throttled-o...

Best regards,

Brian

 

Thanks for your answer, Brian.

 

I'll see how I can customize my code so that it doesn't get throttled. 

Related Conversations