Get empty response on Webhook endpoint

Hi,

Context: I'm using Open to build up our own external messaging system based on Genesys. (It's just a POC for now)
Problem: My problem is that I get a request on my webhook endpoint right after I send an inbound message to my inbound message flow, but there is no body property in that request on the webhook, so no message.

Detailed Context:

  1. Digital Bot Flow: It's a very basic flow
  2. Inbound Message Flow: I created also a very basic inbound message flow, which sends by default a message and then redirect to my Digital Bot Flow.
    image
  3. Oauth Client Credentials: I created in Admin/Integration/Oauth an oauth credentials
  4. Open messaging Integration: I created an Open Messaging integration in Admin/Message/Platforms
  5. Message Routing: I added an Inbound Message Routing in Admin/Routing/Message Routing. Here I added my Inbound message flow and I choosed the the open messaging integration I've created.

Detailed Problem:

  1. I call POST https://login.mypurecloud.com/oauth/token with my OAuth credentials to get an access_token. Works!
  2. I call then POST https://api.mypurecloud.com/api/v2/conversations/messages/inbound/open (The id and channel.messageId properties are random strings, maybe that the problem?). I get HTTP 202 accepted as response.

curl --location --request POST 'https://api.mypurecloud.com/api/v2/conversations/messages/inbound/open'
--header 'Authorization: Bearer y58mGR7gklFz42Vgd7O6vHOnORUd2omqCc_Ga9KgMhKMEfLpW-vwYGsFKcvHnswgbCKHim25hBIhjU0-IjlexQ'
--header 'Content-Type: application/json'
--data-raw '{
"id": "057e082a-9ab4-49e5-9c56-a096ab323123",
"channel": {
"platform": "Open",
"type": "Private",
"messageId": "057e082a-9ab4-49e5-9c56-a096ab323134",
"to": {
"id": "1387d005-b09a-4788-bf53-16c378cdc1bb"
},
"from": {
"nickname": "Messaging User",
"id": "messaging-user@externalservice.com",
"idType": "email",
"firstName": "Messaging",
"lastName": "User"
},
"time": "2023-02-06T14:19:07.592Z"
},
"type": "Text",
"text": "Inbound message test2",
"direction": "Inbound"
}'

  1. After calling the inbound message endpoint I get on my webhook endpoint some requests but there is no body in them:

IncomingMessage {
...
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: false,
rawHeaders: [
'Host',
'6b99-91-83-92-77.ngrok.io',
'User-Agent',
'undefined/344 (messaging-connector-open-OutgoingSQSMessage-HvMZA3kjVH5c)',
'Content-Length',
'550',
'Accept',
'application/json, text/plain, /',
'Content-Type',
'application/json',
'Genesys-Correlation-Id',
'72bd320a-3b57-4d97-a108-46d0821ccbcc',
'Newrelic',
'eyJ2IjpbMCwxXSwiZCI6eyJ0eSI6IkFwcCIsImFjIjoiODExNDU3IiwiYXAiOiJVbmtub3duIiwidHgiOiJjOTc4MzY1YjBiYjlkNDExIiwidHIiOiJmNmM5MzBhODlmZDgzNWFlNmUwMzc4YjExZGEyOWExMSIsInByIjowLjEwMjgxNywic2EiOmZhbHNlLCJ0aSI6MTY3NTY4OTkzODI4NywidGsiOiI1OTU3NzEifX0=',
'Traceparent',
'00-f6c930a89fd835ae6e0378b11da29a11-daac1a924f6e0464-00',
'Tracestate',
'595771@nr=0-0-811457-Unknown-daac1a924f6e0464-c978365b0bb9d411-0-0.102817-1675689938287',
'X-Forwarded-For',
'18.211.239.119',
'X-Forwarded-Proto',
'https',
'X-Hub-Signature-256',
'sha256=Hc7csOYadzzfGcwL6c9CAg39sJ5D7vqe2GJZnfVoir8=',
'Accept-Encoding',
'gzip'
],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '/',
method: 'POST',
statusCode: null,
statusMessage: null,
baseUrl: '/webhook',
originalUrl: '/webhook',
params: {},
query: {}
...
}

So could you please help me, why I get request without message (body) on my webhook endpoint. Is something missing from my infrastructure?
(Sorry for the long post, I just wanted to give you all the details.)

Thanks in advance!

I found the problem, that was on my side. :sweat_smile:

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.