Select to view content in your preferred language

A request was made for service 'SERVICE_NAME.MapServer' but it did not have adequate credentials.

4729
13
11-22-2021 12:42 PM
by Anonymous User
Not applicable

Our GIS team is currently maintaining an ArcGIS Enterprise setup (10.8.1) which allows map requests to be made by users. However, one of our key services is sometimes giving out the following error:

"A request was made for service 'SERVICE_NAME.MapServer' but it did not have adequate credentials."

Usually this works as intended - a user who is the part of a certain group can add data to this table. However, this only sometimes works (the credentials are accepted around 70% of the time). The credentials for these users are not being changed, so this makes me suspect that it is a network/server issue.

Has anyone had a situation similar to this? Other posts mentioned issues with setting ownership roles but that is not the case for us.

13 Replies
ValeriaEl-Samra
New Contributor
DiegoMeira did you find the solution ? 
0 Kudos
DiegoMeira
Occasional Contributor

Hello, 
I contacted Esri support, and they suggested whitelisting ArcGIS Online FQDNs, mainly *.arcgis.com and *arcgisonline.com in the VM hosting the Portal for ArcGIS. That solved the problem.

0 Kudos
KiwiGISmapster
Occasional Contributor

Hi Diego,

Just curious what is the relationship of ArcGIS Online whitelisting to the warning logs you are seeing in ArcGIS Server Manager? Can you provide details? We are using 11.5 and the service that shows this log is shared to a group consistent with what I see in portal sharing and in AGS manager sharing.

Thanks,

Chris

0 Kudos
DiegoMeira
Occasional Contributor

Hello, Chris.

The print service was failing from the client machines. Our logs showed some messages like:

>Exception in authorize Token Required</Msg>
>A request was made for service 'Hosted/<service>.MapServer' but it did not have adequate credentials. </Msg>
>GetServiceInFederatedMode returned null. Error 403 .< /Msg>
>ARCGIS_PORTAL_TOKEN Authentication, Token is not available in the request, request is treated as anonymous</Msg>

We found that the print service was working fine from within the VMs, which pointed to a firewall issue. We validated that using the browser developer tools and noticing that it was failing when trying to retrieve some basemaps that come from ArcGIS Online, such as:
https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer

Once the ArcGIS Server connection was allowed to the *.arcgis.com and *arcgisonline.com domains the problem was solved.

I hope this helps. Cheers,

0 Kudos