APIs & Integrations

HarishGowda
Member

Having an issue with fetching the Webhooks response data

Hi, This is Harish. Actually was facing the problem with fetching the Json data,which is coming the request from the webhooks to the url.I can see the json response in the server logsthis the response in server logs.this the response in server logs.

Now the response coming in the code 

From here how can I fetch the json data.From here how can I fetch the json data.

So this is the whole request.But couldn't find the request body in it. Please help me with this problem.
Thanks and Regards
Harish.

0 Upvotes
2 Replies 2
WendyGoh
HubSpot Employee
HubSpot Employee

Having an issue with fetching the Webhooks response data

Hey @HarishGowda,

 

Could you share with me what's the tool that you're using where you took the screenshot #2? While I'm not too familiar with the response code you shared, can you try expanding out each section and see if it contains the body?

0 Upvotes
HarishGowda
Member

Having an issue with fetching the Webhooks response data

Hi @WendyGoh 
Thank you for replying,

Its webstrom IDE. Actually I have fixed the issue.there was an issue with express js code.At first ,I was using the http requests,where the JSON format was not correct for the incoming json request. Then I have used express.json() function.It was showing the correct json data.