Fairly simple Javascript App (to others at least - I'm fairly new to this) - calls a GP Service, which simply buffers an address and returns other addresses in the specified buffer area.
I'm using the Hotspot example from ESRI as a template:
ArcGIS API for JavaScript Sandbox
When I click the button to run the GP service, it fails - and the message from both Dev tools and the ArcServer logs from the machine hosting the GP Service says 'Service .../MapServer not found'.
Even though the GP service URL in the html file is "https://....../GPServer..." it appears to be looking for a MapService.
The GP Service result is an in memory Feature Layer - Not sure is this will work for display in a js app - the code is using 'getResultMapImageLayer' - my theory is this is the wrong way to go.
I see in older API versions there's lots of documentation on how to get GP Service results, but am not finding much in the 4.x stuff about returning/displaying FeatureLayer results.