javascript - ESRIArcGIS: "Error: Services Directory has been disabled." - Stack Overflow

"Error: Services Directory has been disabled." (Error: 403)Hi,I'm a first-time user of

"Error: Services Directory has been disabled." (Error: 403)

Hi,

I'm a first-time user of ESRI/ArcGIS API's. I've set up an account...etc... and have a Node server which gets an ESRI token and makes a request to an ESRI/ArcGIS services endpoint -- the VRP (Vehicle Routing Problem) service.

I simply want to 'Enable' the "Services Directory" ... or whatever the language is in this case.

I'm not trying to do anything advanced, just touch the service to get acquainted with the input & output -- very simple straight-forward basic stuff.

However, when I attempt this request, the response body is an HTML string (200/ok): <b>Error: Services Directory has been disabled.</b> I've searched (a lot) for a resolution, including from the following page:

.html

Ironically enough (or maybe too much), I don't find anything on ESRI/ArcGIS -- OR -- even Stackoverflow about this matter -- even though it seems to be the first barrier to entry in using these services.

Take a look at the link above, if you will, and hopefully you can enlighten me on what its explaining -- namely, the http://<host>:<port>/<instance>/admin URI schema. It seems that I may need to host/install an Admin/Management server somewhere (?). I'm using my localhost (signed up for Free / Developer Package) right now -- do I need to deploy before I can install/config something? Is there a "Enable Service 'X'" in the ESRI Online portal / myesri?

"Error: Services Directory has been disabled." (Error: 403)

Hi,

I'm a first-time user of ESRI/ArcGIS API's. I've set up an account...etc... and have a Node server which gets an ESRI token and makes a request to an ESRI/ArcGIS services endpoint -- the VRP (Vehicle Routing Problem) service.

I simply want to 'Enable' the "Services Directory" ... or whatever the language is in this case.

I'm not trying to do anything advanced, just touch the service to get acquainted with the input & output -- very simple straight-forward basic stuff.

However, when I attempt this request, the response body is an HTML string (200/ok): <b>Error: Services Directory has been disabled.</b> I've searched (a lot) for a resolution, including from the following page:

http://resources.arcgis./en/help/rest/apiref/admin.html

Ironically enough (or maybe too much), I don't find anything on ESRI/ArcGIS -- OR -- even Stackoverflow about this matter -- even though it seems to be the first barrier to entry in using these services.

Take a look at the link above, if you will, and hopefully you can enlighten me on what its explaining -- namely, the http://<host>:<port>/<instance>/admin URI schema. It seems that I may need to host/install an Admin/Management server somewhere (?). I'm using my localhost (signed up for Free / Developer Package) right now -- do I need to deploy before I can install/config something? Is there a "Enable Service 'X'" in the ESRI Online portal / myesri?

Share Improve this question edited Jun 20, 2020 at 9:12 CommunityBot 11 silver badge asked Feb 13, 2015 at 2:19 CodyCody 10k4 gold badges65 silver badges48 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 2

I think the problem is that you are hitting the wrong url. What is the url(scheme) of your VRP (Vehicle Routing Problem) service you are trying to make request?

Basically it seems that despite their doco.. Esri doesn't have the services directory activated on that url in their samples...

https://geocode.arcgis./arcgis/ is where the service is now...

eg https://geocode.arcgis./arcgis/rest/services/World/GeocodeServer/suggest?f=json&text=Lesmurdie&maxSuggestions=6&token=\

Sounds like you make a URL request to an arcGIS server. Only the server administrator can enable the services directory and as it is disabled you cannot make HTML requests to the get rest services. Here a link to what ESRI says

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744217376a4563617.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信