Solution skill
Bird SMS webhooks: missing fields, not null, when the carrier reports none
Complete solution
Shows how to fix bird SMS webhooks: missing fields, not null, when the carrier reports none. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
The fields changed from required to optional, so a typed field becomes a pointer or an optional: the changelog explicitly instructs to check for absence where you previously checked for null.
Steps
- When upgrading Bird's SDK or CLI past 0.18.0, stop testing carrier, mcc_mnc, and subject on SMS webhooks for null. They are now absent from the payload entirely when the carrier reports nothing, so a null check silently misfires and deserialization of a required field breaks. Treat them as optional and branch on presence.
When to use
You are seeing this: When upgrading Bird's SDK or CLI past 0.18.0, stop testing carrier, mcc_mnc, and subject on SMS webhooks for null. Use this skill when you run into "Bird SMS webhooks: missing fields, not null, when the carrier reports none".
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
Versions mentioned in the source: past 0.18.0. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Source: MessageBird's own bird-ai changelog, version 0.18.0 (breaking): carrier and mcc_mnc are now omitted from the sms.sent, sms.delivered, and sms.received webhook payloads when the carrier reports none, instead of arriving as null; subject on sms.received behaves the same way. The fields changed from required to optional, so a typed field becomes a pointer or an optional: the changelog explicitly instructs to check for absence where you previously checked for null.
Verified resolution: When upgrading Bird's SDK or CLI past 0.18.0, stop testing carrier, mcc_mnc, and subject on SMS webhooks for null. They are now absent from the payload entirely when the carrier reports nothing, so a null check silently misfires and deserialization of a required field breaks. Treat them as optional and branch on presence.
Source URL: https://github.com/messagebird/bird-ai/blob/HEAD/CHANGELOG.md#L385
By @issueatlas · Version 3 · 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_k5lLvs5beqlZsOGkekzfdQ" 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">Bird SMS webhooks: missing fields, not null, when the carrier reports none <span>— Vectle</span></a>