Hi
We are using the UserDefinableApiEndpoint still as a softlaunch option on DataMiner 10.2.6.0-11806.
Now when using Postman the request timeouts after 30s. Is there a setting somewhere to increase this timeout value? We already tried increasing the setting in Postman and IIS.
Hi Wannes,
Increasing the timeout is described on the 'DataMiner UserDefinableApiEndpoint DxM' page of the documentation. There is a section here that describes that you'll need to alter the config of the DxM (MessageBrokerTimeOutSeconds) and also make sure the timeout in IIS is increased as well. You can find it here: https://docs.dataminer.services/user-guide/Advanced_Modules/User%20Defined%20APIs/UD_APIs_UserDefinableApiEndpoint.html#changing-the-timeout
Also make sure to read the general section about changing the DxM configuration, it even contains an example of how the custom settings file looks like with the setting you want to adjust: https://docs.dataminer.services/user-guide/Advanced_Modules/User%20Defined%20APIs/UD_APIs_UserDefinableApiEndpoint.html#configuring-the-dxm
Oh, ok. I misread the version you posted. It is then not the UserDefinableApiEndpoint you are using but the SLAPIEndpoint from the API deployment feature probably? I am not sure whether this supports increasing the timeout. Can you share the response you receive when the request goes in timeout? This could help us pinpoint where it is coming from.
yes indeed.
This is the response I receive:
Error: did not get a response in time Timeout occurred.
That response means that the SLAPIEndpoint did not get a reply back from the script in time. I can see that the default timeout is set to 30s and it is not overridable. You will have to reduce the execution time of the script or upgrade so you can use the new User-Defined APIs feature. Do note that long-running API calls should always be avoided. There is a small section on this in the new documentation as well: https://docs.dataminer.services/user-guide/Advanced_Modules/UserDefinedAPIs/Defining_an_API/UD_APIs_Examples.html#starting-long-running-actions-asynchronously
Ok thanks for the information.
The problem is that this documentation is based on DataMiner 10.3.6/10.4.0 and DataMiner 10.3.5. We are still using 10.2.6.0 this configuration seems a bit different as we don’t have a %programfiles%Skyline CommunicationsDataMiner UserDefinableApiEndpoint directory on the system.