Hi Vig,
Most often, when you run into a 404 with User-Defined APIs, it is the route where the API request is sent to that does not match the configured route. Be sure to double check if this matches the route defined on the API definition made in Cube.
For example, if you have entered 'devices/info' in the 'URL' field when creating the definition, you should trigger the API by sending the request to 'https://<server hostname>/api/custom/devices/info'. Make sure to check if the mandatory '/api/custom' part is in there.
Feel free to update your original question with a screenshot of the API definition and/or share the URL you are using to trigger the API.
Yup, verified that the URL is correct, but maybe IIS is preventing the request to hit DM. We suspect it's a setting/config but unsure what it is.
Response:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>404 – File or directory not found.</title>
<style type="text/css">
<!–
body {
margin: 0;
font-size: .7em;
font-family: Verdana, Arial, Helvetica, sans-serif;
background: #EEEEEE;
}
fieldset {
padding: 0 15px 10px 15px;
}
That response does indeed seem to indicate that IIS is preventing it from reaching the UserDefinableApiEndpoint DxM process. On the troubleshooting page that Miguel already shared, there is a section 'General Checks'. Points 1 to 3 could be useful to check here. I suspect it has something to do with the IIS rewrite rule that is either disabled, or not present. You could potentially fix this as well by re-running the installer for the UserDefinabelApiEndpoint DxM process. This can be found under "C:Skyline DataMinerToolsModuleInstallersDataMiner UserDefinableApiEndpoint <version>.msi". When you execute this installer, you can choose 'Repair', which should also check the aforementioned rewrite rule. Let us know if this would have solved your problem or not.
Yes I went through these but couldnt find any misconfigurations there. I'm also asking my infra engineer to check the host/network settings
Hi Vig,
Could you have a look at the Troubleshooting page and let us if you find any issue in the logs?
https://docs.dataminer.services/dataminer/Functions/User-Defined_APIs/Troubleshooting/UD_APIs_Troubleshooting.html