The Baileys `/on-whatsapp` endpoint can return a bare JSON array instead of a hash with a `data` key. Calling `Array#dig` with a string key raises `TypeError (no implicit conversion of String into Integer)`, causing a 500 error. Handle both response shapes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| whatsapp360_dialog_service_spec.rb | ||
| whatsapp_baileys_service_spec.rb | ||
| whatsapp_cloud_service_spec.rb | ||
| whatsapp_zapi_service_spec.rb | ||