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
    • 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
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about 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)
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Disposable Objects in DataMiner

Solved136 views4 days agoConnector Disposable HttpClient
1
Bautista Solanet [SLC] [DevOps Advocate]490 5 days ago 0 Comments

Hello Dojo,

I have a driver that uses an HttpClient to communicate with an API. For all of the API calls, we simply initialize the Http object, sends the request, and then disposes the object. The issue I'm having is that after we left an element with this version running the driver for a long time, it ran into an issue with accessing a disposable object after it was disposed. After we restarted the element, the issue went away and we cannot recreate it. This seems strange since the only place where this object is accessed is before we dispose it, so I'm hoping someone might know if I'm missing something. Here's one of the methods where I'm experiencing the error:

Thank you for your help,

Bauti

Bautista Solanet [SLC] [DevOps Advocate] Selected answer as best 4 days ago

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Bautista Solanet [SLC] [DevOps Advocate]490 Posted 4 days ago 0 Comments

Hello again,

My understanding of the issue was incorrect and had to do as the ObjectDisposedException was coming from another method called in the SendTokenizeRequest.

While I already knew is was necessary to create a new request when we did a retry, I didn't realize that the content would be disposed of after sending the request and instead it should have been:

This also explains why the error would not consistently show up as it was related to needing to do retries, which would happen when there was incorrect communication between DataMiner and the API.

Bautista Solanet [SLC] [DevOps Advocate] Selected answer as best 4 days ago
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