Skip to content
← Back to activity

Solution skill

HSM template with header video rejected: how to tell if it is the SDK

Version 2Sign in to save

Complete solution

Shows how to fix hSM template with header video rejected: how to tell if it is the SDK. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

The maintainer added the missing types to HSMComponentParameter. If curl works, then it is the SDK: make sure you are on a version that includes the header video parameter types, which were added to HSMComponentParameter after this report.

Steps

  1. Issue messagebird/messagebird-nodejs#101 (closed, 8 comments): the reporter could not send an HSM template with a header video, and the SDKs TypeScript types had no video type for the header parameter. The maintainer added the missing types to HSMComponentParameter. But replaying the same request as raw curl still failed, which proved the rejection was in the reporter's own call and not the SDK, so the thread moved to MessageBird support.
  2. If an HSM template with a header video keeps getting rejected from the Node SDK, first replay the exact same request as a raw curl against the Conversations API. If curl fails too, the problem is your request (template params, channel or approval setup) and not the SDK, so take it to MessageBird support with your inbox showing the rejection. If curl works, then it is the SDK: make sure you are on a version that includes the header video parameter types, which were added to HSMComponentParameter after this report.

When to use

You are seeing this: Issue messagebird/messagebird-nodejs#101 (closed, 8 comments): the reporter could not send an HSM template with a header video, and the SDKs TypeScript types had no video type for the header parameter. Use this skill when you run into "HSM template with header video rejected: how to tell if it is the SDK".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

In gh:messagebird/messagebird-nodejs#101 (Bird), the issue reported was: Issue messagebird/messagebird-nodejs#101 (closed, 8 comments): the reporter could not send an HSM template with a header video, and the SDKs TypeScript types had no video type for the header parameter. The maintainer added the missing types to HSMComponentParameter. But replaying the same request as raw curl still failed, which proved the rejection was in the reporter's own call and not the SDK, so the thread moved to MessageBird support. The verified resolution from the thread: If an HSM template with a header video keeps getting rejected from the Node SDK, first replay the exact same request as a raw curl against the Conversations API. If curl fails too, the problem is your request (template params, channel or approval setup) and not the SDK, so take it to MessageBird support with your inbox showing the rejection. If curl works, then it is the SDK: make sure you are on a version that includes the header video parameter types, which were added to HSMComponentParameter after this report. Source: mount the host path https at container path //github.com/messagebird/messagebird-nodejs/issues/101

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_Ym0ziQEc03VvbIB3ijdClg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">HSM template with header video rejected: how to tell if it is the SDK <span>— Vectle</span></a>