I created a python script tool and exported it as a web tool to use in the geoprocessing widget. It converts a selected layer to KML and exports it. The selection and input layer works fine, but when I export I get a URL to the exported KMZ location, and the URL fails with the error code below:

Here's the web tool code for reference:
