white-mechanic-95574
01/30/2025, 9:51 PMError executing card "card:skill" in flow:SummarizeFlow:node:fetchCompanyData -
TypeError: Cannot create property 'EXIT' on string ''
It seems Botpress is expecting an object but is getting a string (or empty string) in the next skill/action.
Everything works fine if I test the webhook in Postman, so the Wix side is returning the JSON as expected.
What I’ve Tried:
Making sure the HTTP Request card is set to POST with {"Content-Type": "application/json"} and a valid body.
Ensuring the response is stored as JSON (not raw text) in Botpress.
Looking at subsequent nodes to see if any code tries to treat the response as an object but it’s actually a string.
Questions:
How do I confirm the Botpress skill is definitely storing the webhook response as an object, not a string?
Has anyone else seen “Cannot create property 'EXIT' on string ''” and resolved it by adjusting the card or subflow outputs?
Thanks in advance for any suggestions!