This repository contains an example project on how to get started with Amazon Connect Chat Message Streaming APIs to enable SMS and Facebook messenger channels for customer service.
MIT No Attribution
23
stars
39
forks
source link
Replies not sent to customer (FB Messenger); Error in Outbound Lambda #17
I have just deployed the solution and I can get Messages sent to FB Messenger routed to agent as a Chat message.
However, any replies from customer are not received by the customer (Messeneger). I am seeing below error in the Outbound Lambda:
2022-06-22T12:03:26.597Z 4c4d48af-e6e3-42b6-b7cb-6459826c52e7 ERROR Invoke Error {
"errorType": "TypeError",
"errorMessage": "The \"data\" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined",
"code": "ERR_INVALID_ARG_TYPE",
"stack": [
"TypeError [ERR_INVALID_ARG_TYPE]: The \"data\" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined",
" at new NodeError (internal/errors.js:322:7)",
" at Hmac.update (internal/crypto/hash.js:84:11)",
" at sendMessage (/var/task/lib/handlers/facebook.js:39:66)",
" at Object.handler (/var/task/lib/handlers/facebook.js:29:16)",
" at processTicksAndRejections (internal/process/task_queues.js:95:5)",
" at async handleMessage (/var/task/index.js:101:7)",
" at async Runtime.exports.handler (/var/task/index.js:56:5)"
]
}
Hello,
I have just deployed the solution and I can get Messages sent to FB Messenger routed to agent as a Chat message. However, any replies from customer are not received by the customer (Messeneger). I am seeing below error in the Outbound Lambda:
2022-06-22T12:03:26.597Z 4c4d48af-e6e3-42b6-b7cb-6459826c52e7 ERROR Invoke Error { "errorType": "TypeError", "errorMessage": "The \"data\" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined", "code": "ERR_INVALID_ARG_TYPE", "stack": [ "TypeError [ERR_INVALID_ARG_TYPE]: The \"data\" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined", " at new NodeError (internal/errors.js:322:7)", " at Hmac.update (internal/crypto/hash.js:84:11)", " at sendMessage (/var/task/lib/handlers/facebook.js:39:66)", " at Object.handler (/var/task/lib/handlers/facebook.js:29:16)", " at processTicksAndRejections (internal/process/task_queues.js:95:5)", " at async handleMessage (/var/task/index.js:101:7)", " at async Runtime.exports.handler (/var/task/index.js:56:5)" ] }
Any suggestions ?