Unable to make API Calls with Deluge Custom Function

Unable to make API Calls with Deluge Custom Function

Hello, I'm unable to make an API from a custom function using deluge. I'm able to get results with python and postman
Getting error "Custom function execution failed"  "Error due to- Internal Exception"

Below, it's my code 


info changeID;
info url;
headers = {
"authtoken":"MY-TOKEN-VALUE",
"Content-Type": "application/json"
};
getChange = invokeurl
[
url: url
type: GET
headers: headers
];
info getChange;
return null;

                  New to ADSelfService Plus?