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..
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.
I'll try this for sure.. Thanks..
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.
I got it. Thanks for helping and information.. I'll try to make some changes in code... lets see it works or not..
Thanks
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.
No, don't have IIS... can you tell me one thing. even the feature layer is not working with 4.8... only working with 4.7 JS...
Is there any possiblity to use the same url with 4.8..
Or need to update service itself..
I have no experience using Web Server for Chrome extension. But it is likely running into the same issue that 4.8 does when you use localhost or file based urls. Does your machine not have IIS installed?
I totally understand that. .
I am using Web Server for Chrome extension to run program..
but I think web service need some modifications..
its not properly working in 4.8..only works with 4.7
OK, but you understanding my question about the url you are using when accessing your developed application likely has a large impact on that error. So when I am developing on my laptop I have my html files in a certain directory (say c:/JSWorkspace) and that folder in setup as a virtual folder in IIS so that I can access it using a url like http://gislap183/js/ in my web browser. So if I am working on testing.html then the url I use to debug and run my app is http://gislap183/js/testing.html. Now if you are using file:///C:JSWorkspace/testing.html in your browsers url then that is what I mean by file system url. If you are using http://localhost/js/testing.html that that is what I mean by localhost. Neither of those urls will working in JS API 4.8 properly.
when am trying to do spatial filter it shows me these errors..
Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID
[esri.layers.FeatureLayer] #load() Failed to load layer
Promise rejected: Error loading
Promise rejected: esri/config: esriConfig.request.proxyUrl is not set. If making a request to a CORS-enabled server, please push the domain into esriConfig.request.corsEnabledServers.
Raj,
No, not the url of a service you are using but the url that you have in your browser to run your app.
yes I am using localhost.
What is the url that you are using to develop your app?
Are you using localhost or file in the url? If so that is the issue i 4.8 you have to use your machine name in the url when developing
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.