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

Unauthorized error while calling API

110 views7 hours agoapi calls Automation script Custom APIs
0
Baranisudha Murugesan866 5 days ago 0 Comments

I have a custom API which im calling from my GQI to get data. The GQI data is then rendered in grid component LCA. I refresh the grid every 10 seconds, and I cache API response in my GQI for 30 seconds. So for every 30 secs i call my custom API to get data.

Sometimes the API client call throws 401 error even though im passing correct token. this error is thrown once for every 4 API call.

I tried to get data from same API through postman, there also i get same 401 error for once in every 4 calls.

what could be the issue here and how to resolve this?

Thomas Ghysbrecht [SLC] [DevOps Enabler] Answered question 7 hours ago

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Thomas Ghysbrecht [SLC] [DevOps Enabler]4.91K Posted 7 hours ago 0 Comments

Hi Baranisudha,

If you are using User-Defined APIs, this could be caused by the automatic load balancing sending a request to a DMA in your cluster that is experiencing some issues. Do you have by any chance 4 agents in the cluster?

You could check the response body of the 401 error, and you should normally see a JSON structure as explained here: https://docs.dataminer.services/user-guide/Advanced_Modules/User-Defined_APIs/UD_APIs_Triggering_an_API.html#errors

There is a 'faultingNode' field that should reflect on which DMA specifically the validation was done. Check if there are any errors in the 'C:\Skyline DataMiner\Logging\SLUserDefinableApiManager.txt' log file. Also make sure that the DMA is pointing to the same Elasticsearch/OpenSearch cluster so it has access to all tokens & definitions. You could double-check this by using Cube to connect to this faulting DMA & going to 'System Center' -> 'User-Defined APIs'. There, you should see at least the token that you are using. If that is not the case, in most cases, the manager initialization could have failed, or the DMA is not correctly pointing to the same indexing DB cluster as the other agents. Let me know what you find.

Thomas Ghysbrecht [SLC] [DevOps Enabler] Answered question 7 hours 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