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
    • 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
    • DataMiner Insights
      • Security
      • System Architecture
      • DataMiner Releases & Updates
    • 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
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Blank response content when receiving JS object

Solved602 views10th December 2024HTTP JSON
2
Pedro Sánchez [DevOps Advocate]239 5th November 2024 1 Comment

Hello Dojo,

We are trying to receive information through an API that returns a JSON. However, even though we can see the data in Wireshark, the DataMiner streamviewer returns an empty value. Additionally, when we send the data to the parameter ID, we see that the parameter is also blank.
Wireshark:

Stream Viewer:

We are trying to catch the response using:

<Response statusCode=”502″>
<Content pid=”302″></Content>
</Response>

Are we missing something here?

Thanks!!

Edit:
José, I’ve tried before with application/json as Content-type with the same result. I’ve also try to add some other headers, delete them, try combinations…
Complete session:

<Session id=”2″ name=”HTTP_REQUEST_GetStreams” loginMethod=”credentials” userName=”username” password=”password”>
<Connection id=”1″>
<Request verb=”GET” url=”/zixi/streams.json”>
<Headers>
<Header key=”Authorization”>credentials</Header>
<Header key=”User-Agent”>DataMiner</Header>
<Header key=”Accept”>*/*</Header>
<Header key=”Accept-Encoding”>gzip, deflate, br</Header>
<Header key=”Connection”>keep-alive</Header>
<Header key=”Content-Type”>application/json</Header>
</Headers>
</Request>
<Response statusCode=”502″>
<Content pid=”302″></Content>
</Response>
</Connection>
</Session>

Pedro Sánchez [DevOps Advocate] Selected answer as best 10th December 2024
Pedro Sánchez [DevOps Advocate] commented 14th November 2024

Hi Dojo! has anyone had a similar experience? we are still facing the same problem after a lot of "headers-combination" test.
Thank you!

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Jeroen Neyt [SLC] [DevOps Advocate]2.31K Posted 10th December 2024 2 Comments

From the network stream that you shared, it looks like you are trying to integrate a Zixi Broadcaster in DataMiner. Are you aware that we have a ready to use connector for that device in the DataMiner Catalog?

We have previously seen a similar issue with the same device and the root cause was the fact that it’s using a deflate compression algorithm which WinHTTP (the engine that DataMiner is using in the background for HTTP communication) does not fully seem to be able to decompress.

It does not seem to be a generic issue because while it is not able to deflate these specific responses, it does seem to be able to deflate other responses. Other clients do seem able to deflate these actual responses so it is also not a compression issue at the device its side.

Another issue that we noticed is that it does not seem to respect the order of the algorithms defined in the Accept-Encoding request header. As soon as it notices the word deflate in there, it is going to use that one to compress even though gzip is preferred.

Can you try to force it to use gzip compression instead. You can do this by changing the Accept-Encoding request header definition to:

<Header key=”Accept-Encoding”>gzip</Header>

Jeroen Neyt [SLC] [DevOps Advocate] Posted new comment 10th December 2024
Pedro Sánchez [DevOps Advocate] commented 10th December 2024

Hi Jeroen,
Thank you very much for your help. You are totally right; using gzip in the Accept-Encoding request header works perfectly. It seems that WinHTTP was using deflate instead of gzip without checking the order.
Thanks again!

Jeroen Neyt [SLC] [DevOps Advocate] commented 10th December 2024

Glad you got it working! Do note however that it's the Zixi Internal Web Server that is not interpreting the Accept-Encoding request header correctly and is always preferring deflate over gzip even though the order says differently. WinHTTP actually just decompresses the response based on what the web server decided and what is specified in the Content-Encoding response header.

0
José Silva [SLC] [DevOps Catalyst]1.32K Posted 5th November 2024 2 Comments

Hi Pedro,

Could you share the full session details with us?
Also, have you tried adding the following as a header?

<Header key=“Content-Type”>application/json</Header>

Kind regards,

Pedro Sánchez [DevOps Advocate] Posted new comment 5th November 2024
José Silva [SLC] [DevOps Catalyst] commented 5th November 2024

The XML content in the “Add a Comment” box will always be truncated due to a known issue.

Could you please update your initial question to include this information?

Thanks in advance
Kind regards,

Pedro Sánchez [DevOps Advocate] commented 5th November 2024

Hi José, done!

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