I have a road network which i published on ArcGIS portal. The road network is working fine on ArcMap and when i published it is working fine using ArcGIS Rest API directly (.../RoadNetwork/NAServer/Route/).
I am having issues while configuring the directions widget in Webappbuilder (2.13 or before).
I have two questions
1. Travel Mode URL is giving me suggestion to add a GP Service why should i use a GP Service when i have the option to retrieve travel mode using ArcGIS rest API (..../RoadNetwork/NAServer/Route/retrieveTravelModes/) does this mean i have to publish a GP Service ?
2. When i configure the widget and run the directions i am getting following error in console.
What i am doing wrong ?