2024 Sep 28 8:58 AM - edited 2024 Oct 03 3:18 PM
Hi Everyone,
I've posted a message to Event Mesh using httprest protocol like that
With json payload
I've succcess parse message on BAS, VS Code with code of logic above (and real payload i got from BTP apps logs)
but i got error when i deployed to Cloud foundry
stacktrace":["TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined"," at Function.from (node:buffer:319:9)"," at IncomingStream.<anonymous>
Please give me advice
1. Do i need change some config, add any header, params... to post message to Queue with message.payload.data for consumer instead of message.payload.chunks[0].data
2. If can't post message to queue with payload to message.payload.data then how can i resolve Buffer parse error above?
FYI:
- Checked node version on BAS, VSCode, Cloud Foundry is same also, set node engines in package.json as well
Thanks in advance
Request clarification before answering.
Hi everyone,
For point 2. i've resolved seam chunks[0] is buffer object
But still need solution and advice for point 1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
41 | |
15 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.