Whatsapp confirmation msg failing

mail@pastecode.io avatar
unknown
plain_text
a year ago
2.3 kB
8
Indexable
Never
Booking confirmation no:  117466804713708 918668973044 booking_confirmation_template_message en [
  { type: 'text', text: 'Kunal' },
  { type: 'text', text: '4' },
  { type: 'text', text: 'GECA' },
  { type: 'text', text: '23 Jun, Friday' },
  { type: 'text', text: '09:00 AM' },
  { type: 'text', text: 'https://shorturl.at/xBIJT' },
  { type: 'text', text: '8275861835' }
] [] [
  {
    type: 'button',
    sub_type: 'url',
    index: 0,
    parameters: [ [Object] ]
  }
]
Request is {"messaging_product":"whatsapp","recipient_type":"individual","to":"918668973044","type":"template","template":{"name":"booking_confirmation_template_message","language":{"code":"en"},"components":[{"type":"body","parameters":[{"type":"text","text":"Kunal"},{"type":"text","text":"4"},{"type":"text","text":"GECA"},{"type":"text","text":"23 Jun, Friday"},{"type":"text","text":"09:00 AM"},{"type":"text","text":"https://shorturl.at/xBIJT"},{"type":"text","text":"8275861835"}]},{"type":"button","sub_type":"url","index":0,"parameters":[{"type":"text","text":"g332FtW6yzPv2bDbA"}]}]}}
WhatsApp response is  Response {
  size: 0,
  timeout: 0,
  [Symbol(Body internals)]: {
    body: Gunzip {
      _writeState: [Uint32Array],
      _readableState: [ReadableState],
      _events: [Object: null prototype],
      _eventsCount: 5,
      _maxListeners: undefined,
      _writableState: [WritableState],
      allowHalfOpen: true,
      bytesWritten: 0,
      _handle: [Zlib],
      _outBuffer: <Buffer 7b 22 65 72 72 6f 72 22 3a 7b 22 6d 65 73 73 61 67 65 22 3a 22 28 23 31 33 32 30 30 30 29 20 4e 75 6d 62 65 72 20 6f 66 20 70 61 72 61 6d 65 74 65 72 ... 16334 more bytes>,
      _outOffset: 0,
      _chunkSize: 16384,
      _defaultFlushFlag: 2,
      _finishFlushFlag: 2,
      _defaultFullFlushFlag: 3,
      _info: undefined,
      _maxOutputLength: 4294967296,
      _level: -1,
      _strategy: 0,
      [Symbol(kCapture)]: false,
      [Symbol(kCallback)]: null,
      [Symbol(kError)]: null
    },
    disturbed: false,
    error: null
  },
  [Symbol(Response internals)]: {
    url: 'https://graph.facebook.com/v13.0/117466804713708/messages',
    status: 400,
    statusText: 'Bad Request',
    headers: Headers { [Symbol(map)]: [Object: null prototype] },
    counter: 0
  }
}