Why when I want to validate my geoprocessing service URL in Web AppBuilder for ArcGIS I got:
The URL you have entered is invalid or inaccessible message.
The REST URL: Task: Select_Sites
Solved! Go to Solution.
enable https on agol (forces all connections to use https
Are you accessing the Web App builder over https? I would use Fiddler or take a look at the Developer tools to figure out what request is failing.
I am accessing Web App builder intregated in ArcGIS Online not Developer edition...
Fiddler and developer tools, (for example the Chrome developer tools) will allow you to inspect the network traffic when configuring the widget to help you identify the problem. Each browser has it's own developer tools. If you're going to be working with web applications and services, you'll benefit from knowing how to troubleshoot network traffic.
I tried Chrome Dev Tool and I got this
So must it be over HTTPS?
But why when I validate this
there was no problem?
You need to match the protocol you use to access the WAB with the protocol of the GP service, (or vice versa). If you access the WAB over HTTPS, the GP service needs to be accessed over HTTPS. If you access the WAB over HTTP, you need to use HTTP for the GP service. Take a look at what mixed content is.
So how to change from HTTP to HTTPS? I am not experienced with things like this. Any suggestion?
Well, the easiest thing to try is simply adding an "s" to http and see if you can reach the service. If you can, then you should be good to go. If you can't, you'll need to speak with the admin of the GIS Server site or your IT staff to enable HTTPS on whatever is the front end of the GIS Server, (IIS and the web adaptor, reverse proxy, etc). Here's some documentation that may help.
enable https on agol (forces all connections to use https