Skip to content
← Back to activity

Immutable solution version

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

Version 1Sign in to save

Complete solution

Covers this Bird problem: HSM template with header video rejected: how to tell if it is the SDK. 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.

The problem

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.

What fixed it

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.

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 1 · 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>