Skip to main content
Jun 26, 2013 8:18 AM UTC
Duplicate

When a webhhok fails - the response mapping does not work?

Hi, i want to store some result fields into Marketo fields once the webhook fails.
But it does not work.
I can see the error message on the results tab of the compaign but the response mapping does not work.
For example, this is the response i receive:
{"timestamp":1372233958185,"error":{"httpStatus":500,"reason":"Last name is missing from the request","message":"Internal server error while invalid entity.","code":10003},"status":"Enrichment Failed"}

And i am mapping the "status" field to a custom field.
But the result does not enter the field.

Any ideas?

thanks

6 replies

Jun 26, 2013 8:37 PM UTC
We have fixed this issue now.  Please retry
Translate
Jun 27, 2013 4:55 AM UTC
It still does not work. (what was fixed was webhooks update response fields in general, but this scenario of error was not fixed)
when i get an error response from webhook and this data:
{"timestamp":1372308838846,"error":{"httpStatus":500,"reason":"Last name is missing from the request","message":"Internal server error while invalid entity.","code":10003},"status":"Enrichment Failed"}

The status which is mapped to custom field does not update the field.
thanks

Translate
Jun 27, 2013 8:28 PM UTC
Amnon,
We parse the response whenever we get a HTTP response code of 200.  Would it be possible for you to change the response code on your side for this error?
Translate
Jul 2, 2013 8:04 AM UTC
I can do this. However, this way i won't see the webhook as failed in the result table. it will seem like it succeeded.
Translate
Jul 2, 2013 1:34 PM UTC
You can filter for failures by "webhook is called" with constraint "Response" contains "Server Error"
Translate
Feb 24, 2020 7:20 PM UTC
No text available
Translate