Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Blog
  • Questions
  • Learning
    • Courses
    • Certification
      • DataMiner Operator
      • DataMiner Administrator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
    • Video Library
    • Books We Like
    • Third-party Courses
    • DevOps Enablement Services
    • Quizzes
  • RESOURCES
  • Agile
    • Agile Webspace
    • Everything Agile
      • The Agile Manifesto
      • Best Practices
      • Retro Recipes
    • Methodologies
      • The Scrum Framework
      • Kanban
      • Extreme Programming
    • Roles
      • The Product Owner
      • The Agile Coach
      • The Quality & UX Coach (QX)
  • Expert Hubs
    • DataMiner DevOps Professional Program
    • DataMiner
      • DataMiner Releases & Updates
      • System Architecture
      • Integration Studio
      • Visual Overview
      • Security
    • Technologies
      • CI/CD
      • Converged Interconnect Networks
      • DOCSIS 3.1 / DAA
      • Elasticsearch
      • Kubernetes
      • Telemetry / Flow Monitoring
      • PTP
      • SDN / ST2110 / NMOS
    • Business
      • Software Business models
      • Perpetual Use or Usage-based Services
  • Discover
    • Markets
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Solutions
    • Use Case Library
    • DataMiner Dashboards
    • DataMiner Downloads
    • DataMiner Modules
      • Core features
      • SRM features
    • DataMiner Apps
    • Professional Services
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • Pricing
  • More
    • Feature Suggestions
    • Online DataMiner Systems
    • Leaderboard
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
    • Verify a certificate
  • >> Go to dataminer.services

How to increase the timeout on the UserDefinableApiEndpoint?

Solved178 views1st June 2023timeout UserDefinableApiEndpoint
1
Wannes Wittevrongel [SLC] [DevOps Advocate]130 1st June 2023 0 Comments

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.

Wannes Wittevrongel [SLC] [DevOps Advocate] Selected answer as best 1st June 2023

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
4
Thomas Ghysbrecht [SLC] [DevOps Enabler]2.54K Posted 1st June 2023 5 Comments

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

Wannes Wittevrongel [SLC] [DevOps Advocate] Selected answer as best 1st June 2023
Wannes Wittevrongel [SLC] [DevOps Advocate] commented 1st June 2023

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.

Thomas Ghysbrecht [SLC] [DevOps Enabler] commented 1st June 2023

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.

Wannes Wittevrongel [SLC] [DevOps Advocate] commented 1st June 2023

yes indeed.
This is the response I receive:
Error: did not get a response in time Timeout occurred.

Thomas Ghysbrecht [SLC] [DevOps Enabler] commented 1st June 2023

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

Wannes Wittevrongel [SLC] [DevOps Advocate] commented 1st June 2023

Ok thanks for the information.

0
Gerwin van der Kamp [DevOps Enabler]970 Posted 1st June 2023 1 Comment

Did you try to change the default script timeout time?

you can change it with: engine.Timeout = TimeSpan.FromMinutes(1); to increase the timeout of the script to 1 minute.

Wannes Wittevrongel [SLC] [DevOps Advocate] Posted new comment 1st June 2023
Wannes Wittevrongel [SLC] [DevOps Advocate] commented 1st June 2023

It is not the script itself that goes into timeout. We can still see the script running on DataMiner.

Please login to be able to comment or post an answer.

My Dojo Points

0 Credits
0 Reputation

Question Tag Cloud

adl2099 (54) Alarm Console (53) alarms (70) alarm template (58) API (35) Automation (144) automation scipt (65) Automation script (95) backup (54) Cassandra (142) cloud (37) Connector (44) Correlation (42) Cube (114) Dashboard (134) Dashboards (136) database (64) DataMiner Cube (37) DIS (53) DMS (48) DOM (68) driver (48) DVE (43) Elastic (73) Elasticsearch (99) elements (49) Failover (90) GQI (51) HTTP (45) IDP (55) low code app (70) low code apps (43) MySQL (50) protocol (145) QAction (58) resources (35) security (71) SNMP (56) SRM (267) SRM resources (39) timeout (35) trending (66) upgrade (44) Visio (373) Visual Overview (290)
Privacy Policy • Terms & Conditions • Contact

© 2023 Skyline Communications. All rights reserved.

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin