I can't get information from an API in Watson Assistant with Webhooks.
Every time I try appears this error even tough I set the Content-Type.
I run into this issue today as I forgot to put .json
to the end of the web action endpoint.
Instead of: https://LINK_TO_ACTION_NAME
It should be: https://LINK_TO_ACTION_NAME.json
I think the HTTP header is missing from the response of the webhook that is called by Assistant; the server that is running the webhook / the server that is called by Assistant to process the webhook.
See How to solve web_action error "Internal error: Content-type cannot be retrieved" which looks very similar. This was because the server called by Assistant to process the webhook was returning a response without the Content-Type header.