Workflow response to webhook is “PENDING”?

As i calling the retool API from postman.

The response I get is

{
"success": true,
"workflow_run": {
"id": "",
"workflow_id": "<work_flow_id",
"created_at": "2024-02-26T10:48:20.062Z",
"status": "PENDING"
}
}

but when i am running it from retool its self

The correct response i am getting.

Can you share a screenshot of the logs from one of the webhook calls?




Sorry @Mahir_Anand, I should have been more clear! I meant this area:

And then more specifically, the JSON tab of your startTrigger component when you run it and when you call it from Postman.

It might also be helpful to see a zoomed out view of your workflow to better understand how things are (or aren't) getting processed.

Here is the content of my JSON tab of startTrigger:

{"value":{"client":"c03e659e-6dac-4cd8-8553-e7277f247019","apiKey":"d506b9e0abd00c5aa2a559217bebcb224d1385ec","campaignType":"streak","topic":"6 Day Strava Themed Workout","questionCount":5,"rewardCount":1,"theme":"6 Day Strava Themed Workout","rewards":"6 Day Strava Themed Workout","streakCount":6,"GPT":{"themeFonts":{"primaryFont":{"variable":"--primary-font","type":"GOOGLE","family":"Oswald","url":"https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&display=swap"},"secondaryFont":{"variable":"--secondary-font","type":"GOOGLE","family":"Roboto","url":"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"}},"themeColors":{"dark":{"default":{"--P1":"#0F4C75","--S1":"#F0F0F0","--Accent":"#D9D9D9","--B1":"#0F4C75","--B2":"#F0F0F0","--F1":"#FFFFFF","--F2":"#3E3E3E","--F3":"#FFFFFF","--Error":"#DB2323","--Success":"#1CC25F","--Alert":"#DB2323"},"custom":{"--P1-light":"#0296E5","--Success-light":"#1A403C","--Alert-light":"#DB2323"}},"light":{"default":{"--P1":"#0F4C75","--S1":"#F0F0F0","--Accent":"#D9D9D9","--B1":"#0F4C75","--B2":"#F0F0F0","--F1":"#FFFFFF","--F2":"#3E3E3E","--F3":"#FFFFFF","--Error":"#DB2323","--Success":"#1CC25F","--Alert":"#DB2323"},"custom":{"--P1-light":"#0296E5","--Success-light":"#1A403C","--Alert-light":"#DB2323"}}},"content":{"streakHeading":"Unlock exclusive achievements","streakSubheading":"by completing the challenge","streakActivity":"Check-in for 6 days with Strava Themed Workout","streakRewardInfo":"Receive a special badge upon successfully finishing the 6 Day Strava Themed Workout challenge","streakTNC":["Badge will be awarded only once per participant.","Completion of all 6 days is necessary to qualify for the badge.","No partial completion will be considered for the reward."],"streakButtonText":"CHECK-IN","streakIcons":{"icon":"https://cdn.iconscout.com/icon/premium/png-256-thumb/day-6-7412818-6130459.png","count":6},"streakImage":"https://images.pexels.com/photos/7758348/pexels-photo-7758348.jpeg?auto=compress&cs=tinysrgb&h=350"},"reward":{"slots":[{"probability":1,"maxscore":5,"minscore":0,"reward":{"title":"6 Day Workout","body":"Complete a 6-day Strava themed workout and earn exciting rewards!","code":"STRAVA6DAY","type":"points","tnc":["Valid for one-time use only.","Points will be credited after completion of the 6-day workout.","Expires in 30 days."],"icon":"https://assets.customerglu.com/84acf2ac-b2e0-4927-8653-cba2b83816c2/230e97e1-063d-4b5e-84f6-f5353771d7ec.png","cta":{"target":"STORE","name":"Back","action":{"store":"ROUTER","type":"ROUTER_STORE POP PAGE START","payload":{}},"isCommonCta":false}}}]}}},"metadata":null,"data":{"client":"c03e659e-6dac-4cd8-8553-e7277f247019","apiKey":"d506b9e0abd00c5aa2a559217bebcb224d1385ec","campaignType":"streak","topic":"6 Day Strava Themed Workout","questionCount":5,"rewardCount":1,"theme":"6 Day Strava Themed Workout","rewards":"6 Day Strava Themed Workout","streakCount":6,"GPT":{"themeFonts":{"primaryFont":{"variable":"--primary-font","type":"GOOGLE","family":"Oswald","url":"https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&display=swap"},"secondaryFont":{"variable":"--secondary-font","type":"GOOGLE","family":"Roboto","url":"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"}},"themeColors":{"dark":{"default":{"--P1":"#0F4C75","--S1":"#F0F0F0","--Accent":"#D9D9D9","--B1":"#0F4C75","--B2":"#F0F0F0","--F1":"#FFFFFF","--F2":"#3E3E3E","--F3":"#FFFFFF","--Error":"#DB2323","--Success":"#1CC25F","--Alert":"#DB2323"},"custom":{"--P1-light":"#0296E5","--Success-light":"#1A403C","--Alert-light":"#DB2323"}},"light":{"default":{"--P1":"#0F4C75","--S1":"#F0F0F0","--Accent":"#D9D9D9","--B1":"#0F4C75","--B2":"#F0F0F0","--F1":"#FFFFFF","--F2":"#3E3E3E","--F3":"#FFFFFF","--Error":"#DB2323","--Success":"#1CC25F","--Alert":"#DB2323"},"custom":{"--P1-light":"#0296E5","--Success-light":"#1A403C","--Alert-light":"#DB2323"}}},"content":{"streakHeading":"Unlock exclusive achievements","streakSubheading":"by completing the challenge","streakActivity":"Check-in for 6 days with Strava Themed Workout","streakRewardInfo":"Receive a special badge upon successfully finishing the 6 Day Strava Themed Workout challenge","streakTNC":["Badge will be awarded only once per participant.","Completion of all 6 days is necessary to qualify for the badge.","No partial completion will be considered for the reward."],"streakButtonText":"CHECK-IN","streakIcons":{"icon":"https://cdn.iconscout.com/icon/premium/png-256-thumb/day-6-7412818-6130459.png","count":6},"streakImage":"https://images.pexels.com/photos/7758348/pexels-photo-7758348.jpeg?auto=compress&cs=tinysrgb&h=350"},"reward":{"slots":[{"probability":1,"maxscore":5,"minscore":0,"reward":{"title":"6 Day Workout","body":"Complete a 6-day Strava themed workout and earn exciting rewards!","code":"STRAVA6DAY","type":"points","tnc":["Valid for one-time use only.","Points will be credited after completion of the 6-day workout.","Expires in 30 days."],"icon":"https://assets.customerglu.com/84acf2ac-b2e0-4927-8653-cba2b83816c2/230e97e1-063d-4b5e-84f6-f5353771d7ec.png","cta":{"target":"STORE","name":"Back","action":{"store":"ROUTER","type":"ROUTER_STORE POP PAGE START","payload":{}},"isCommonCta":false}}}]}}},"headers":{"x-datadog-trace-id":"881768057925299543","x-datadog-parent-id":"8968041064685062789","x-datadog-sampling-priority":"-1","host":"api.retool.com","x-request-id":"21b446c2f8b90b233f32e85fb8306bda","x-real-ip":"20.207.108.216","x-forwarded-for":"20.207.108.216","x-forwarded-host":"api.retool.com","x-forwarded-port":"443","x-forwarded-proto":"https","x-forwarded-scheme":"https","x-scheme":"https","content-length":"2069","accept":"application/json, text/plain, */*","content-type":"application/json","user-agent":"axios/1.4.0","accept-encoding":"gzip, compress, deflate, br"}}

Thanks - nothing obviously standing out from this. A couple more things to check.

Can you post a full show of this section (extend it so you can see all blocks)

Do the same for a run that works (I assume those are the manual ones, where you've hit run) - where you're getting the response you are expecting.

Could you also show the content of your startTrigger for one of those manual runs?


Thanks - I'm trying to see that part for one of the webhook calls though, to see if it's getting to the response block.

still the output in postman is same.

It's critical for us resolve bcs of this we whole system is not working.

Kindly do a fast solution on this and try to fix this as soon as possible.

and i connecting with support team from so long the solution is not porvided.

if it not resolve soon i have to move it to other service.

@Mahir_Anand Can you share the highlighted area on one of the runs from the webhook - then we can see if it's even getting to your response block.


I've pasted the highlighted blocked. Also, we can see in the runs that code runs successfully, and the JSON tab of response block also has the correct response data, but it doesn't return the correct response with the API call.

Hi @Mahir_Anand, welcome to the forum! :wave:


Are you seeing this on any other workflows?

It is weird that is showing "Invalid JSON" for your response, object looks good.

Let's try something:

Could you create a new "Response" block and just add {test: "testing"} to "Return body", let's see if it also shows as pending when you make the request from Postman.

Are we still having this issue?