Select to view content in your preferred language

Custom cache busting app AGOL causes intermittent errors

88
0
11-06-2024 09:51 AM
Jay_Gregory
Frequent Contributor

Hello, we currently have an M4 Premium DataStore in our organization - we have a custom JavaScript SDK application that is used by less than 1000 users simultaneously, though the application does implement cache busting using the request interceptor to get around the 30 second cache in ArcGIS Online layers.  Intermittently, we get a 200 response from a REST query, where the content of the response is 

 

{"error":{"code":503,"message":"An error occurred.","details":[]}}

 

Incidentally this response causes a CORS error because it doesn't have the appropriate headers, AND a JS SDK error (failure to load tile) because the SDK is expecting a valid PBF response.  

Ignoring for a moment the best practices around cache busting, what are we to make of this error?  Is it related to load on the DataStore (currently an M4), at the API level, or something else entirely?

Tags (2)
0 Kudos
0 Replies