Select to view content in your preferred language

what to do if feature service work with only version 4.7 ?

2263
14
Jump to solution
08-28-2018 02:42 PM
Rocky_
by
Frequent Contributor

I am using few urls as feature layers for graphical representation..but when I tried to use 4.8 ArcGIS JS version it gives me error..

works fine with 4.7..

What to do to work same urls in 4.8 vs of ArcGIS JS...

Any suggestion..

Thanks a lot..

0 Kudos
14 Replies
RobertScheitlin__GISP
MVP Emeritus

It has nothing to do with the service it has to do with a change that was made in the 4.8 API which no longer allows localhost or file system urls to work without error.

Rocky_
by
Frequent Contributor

I got it. Thanks for helping and information.. I'll try to make some changes in code... lets see it works or not..

Thanks

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

RAJ,

   There is nothing you can change in your code to make it work either. The issue is the development environment. Starting in 4.8 API  a loopback url like 127.0.0.1 also known as localhost is considered a secured source and will use https protocol by default. So if your web server or your case the web server extension is not setup for https you will get an error like you are seeing because a service url is using a different protocol and thus the ERR_CERT_AUTHORITY_INVALID error.

RobertScheitlin__GISP
MVP Emeritus

Your fix to this would be quit using Chrome Web Server extension and start using your machines IIS and the machine name in the url. Then you will not have any issue.

Rocky_
by
Frequent Contributor

I'll try this for sure.. Thanks..

0 Kudos