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

C# script for HTTPS connexion and error sending the request

Solved181 views8th April 2025
1
Henri Martins [DevOps Advocate]626 3rd April 2025 4 Comments

Hi. I’ve created a C# script to made an HTTPS connexion to an equipment.  I’ve got an error message “error occured while sending the request” message and the next https request will fail.

Here is the code with comments:

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 8th April 2025
Benjamin Hodžić [SLC] [DevOps Advocate] commented 3rd April 2025

Can you try logging the information of the innermost exception in the catch clause?

You can do that like this:
engine.GenerateInformation(ex.GetBaseException().Message);

Henri Martins [DevOps Advocate] commented 3rd April 2025

We got only the same message in Value field "An error occurred while sending the request. (Script '…')"

Benjamin Hodžić [SLC] [DevOps Advocate] commented 3rd April 2025

Other things I could think of:
1. More headers are needed, like a specific Authorization header
2. Maybe implementing asynchronous method with async/await keywords would help
3. Did you try installing the TLS certificate required for the server/device on the machine where this script is running?

Geovanny Galeano [SLC] [DevOps Advocate] commented 3rd April 2025

Hi Henry, as Benjamin already mentioned can you check the following
-Test with another tool (Postman, curl) to confirm connectivity.
-Ensure TLS 1.2 is supported.
-Check if the server has a valid SSL certificate.

Let us know if after checking the items above everything checks out, and we can see what else could be going wrong.

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Henri Martins [DevOps Advocate]626 Posted 7th April 2025 0 Comments

Hi. The await method resolves my connection problem. Many thanks.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 8th April 2025
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