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

0 Likes

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 Comments
Anonymous
Not applicable
We have fixed this issue now.  Please retry
Anonymous
Not applicable
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

Anonymous
Not applicable
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?
Anonymous
Not applicable
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.
Anonymous
Not applicable
You can filter for failures by "webhook is called" with constraint "Response" contains "Server Error"
kh-lschutte
Community Manager
Status changed to: Already have it