I have been facing the issue When I download the script from the rest API.
I am doing this "http://uccx-server/adminapi/script/download/call.aef" and I get the response from the server.
<apiErrors>
<apiError>
<errorData>ServerError</errorData>
<errorMessage>Missing domain: pathname call.aef</errorMessage>
<errorType/>
</apiError>
</apiErrors>
I can see the file exits in my application.