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
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • 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)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Issues with https request to Prometheus server when request object is returned from “before” QAction

Solved991 views16th May 2024
1
Mark Smith82 25th April 2024 0 Comments

I am trying to get the Prometheus driver working with a Prometheus server that is listening on port 443 using https. Because it is an internal company system the certificate is self signed. The connection is failing with Error : 12030. [ERROR_WINHTTP_CONNECTION_ERROR].

I have been trying to debug the driver and it looks like the http query is being constructed in an object that is returned from a "before" Qaction:
object[] httpCommand = new object[] { "http", new[] { requestType, sIp, credentials[0], credentials[1], httpheaders, timeoutMs }, new[] { httpcommand } };

return httpCommand;
so I can see how it is being built, however I cannot see any code that is sending the request to the prometheus server as I'm not sure how the mechanism that sends the returned object from the Qaction works. I suspect it may be failing due to not ignoring warnings about self signed certificates, but not sure how to debug any further. If this is the case then I am hoping that there will be a flag that can be set in the httpCommand object to ignore the warning. Does anybody know how I can get this information or get more debug info on the failure?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 16th May 2024

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Laurens Moutton [SLC] [DevOps Enabler]8.74K Posted 26th April 2024 5 Comments

Hi,

Like Tom mentions, this is making use of a multi-threaded timer.

The meaning of the different error codes can be found here .
For "ERROR_WINHTTP_CONNECTION_ERROR" there is described "The connection with the server has been reset or terminated, or an incompatible SSL protocol was encountered. For example, WinHTTP version 5.1 does not support SSL2 unless the client specifically enables it".

If there would be an issue with the certificate, I would be expecting an ERROR_WINHTTP_SECURE_***** error being returned instead, like ERROR_WINHTTP_SECURE_FAILURE or ERROR_WINHTTP_SECURE_INVALID_CERT as those are the errors the are typically pointing to issues with the certificate.

A Wireshark capture would indeed shed some more light on what is going wrong when trying to set up the connection.

Regards,

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 16th May 2024
Mark Smith commented 27th April 2024

I just did a wireshark capture and the http request shows: [Unencrypted HTTP protocol detected over encrypted port, could indicate a dangerous misconfiguration.]. Is it possible that Dataminer is not requesting https? as when I do a similar request to the endpoint through a browser with https I can see the TLS handshake. How do I configure a multitreaded timer to use https? Thanks

Mark Smith commented 27th April 2024

[Full request URI: http://xxx.xxxx.xxx.xxx:443/grfprom/api/v1/query?%5D

note – I have replaced the ip address with xxx.xxx.xxx.xxx

Laurens Moutton [SLC] [DevOps Enabler] commented 29th April 2024

Can you edit the element and for the HTTP connection specify in the “IP address/host” field the https prefix? E.g. https://127.0.0.1 (with 127.0.0.1 needs to be replaced with the original IP that was present). If that would not work, please also verify that the protocol.xml supports https (e.g. check the version history comments, or check the QAction 1 if the GetIp method contains a case to deal with https) as that was not supported by the connector in the past.

Mark Smith commented 1st May 2024

yes, that has worked, thanks for your help.

Laurens Moutton [SLC] [DevOps Enabler] commented 2nd May 2024

Thank you for confirming, I’m glad to hear that the problem is fixed.

You are viewing 1 out of 2 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

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