最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin4浏览0评论

"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

发布评论

评论列表(0)

  1. 暂无评论