Select to view content in your preferred language

Why my page request "https://arcgis.com/sharing" resources?

169
5
Tuesday
baohuachu7
Occasional Contributor

My application deployed in our network. All the resources are(map services, js SDK..) are in our local network. While when application started  the network access records contain the request: https://arcgis/com/sharing/rest/portals/self?f=json

0 Kudos
5 Replies
CodyPatterson
MVP Regular Contributor

Hey @baohuachu7 

You may check the content of the request in the developer console to see if it's passing information. From what I know, this is more just a keep-alive request that is sent out by default, even in ArcGIS Enterprise you will see random requests go our to ArcGIS Online. It's probably some informational or part of some set of tests the application goes through!

Cody

0 Kudos
D_Atkins
Frequent Contributor

Out of curiosity, I double checked the network traces on an Portal-based Experience Builder app and also one of our JS SDK pages; neither application made any external requests other than those expected (i.e., js.arcgis for the Javascript map).

Could be that the observed call to arcgis.com is related to a late assignment of the esriConfig.portalUrl?

D_Atkins_0-1767192113569.png

 

CodyPatterson
MVP Regular Contributor

Hey @D_Atkins 

Very interesting, thank you for looking into your own environment as well! It may be the late call to the portalUrl, in my eyes, the major reason why it would be reaching out would be either, some type of AGOL based authentication or callback is needed, or there is a specific part of the app that reaches directly out to AGOL.

In a few of my cases it was because I was needing some type of authentication between the app and AGOL, I'm no longer in the position where I can check this, but I believe that was the case. 

I did find this post here about dependency issues, I wonder if something could be going on here as well? https://stackoverflow.com/questions/79295897/how-can-i-avoid-calls-to-js-arcgis-com-from-my-javascri...

Cody

0 Kudos
baohuachu7
Occasional Contributor
I checked my application ,the request is from creating the Search widget.
0 Kudos
baohuachu7
Occasional Contributor

@CodyPatterson  @D_Atkins   Today I checked it again, this apears when “Search” widget was created. My SDK version is 4.23.  

0 Kudos