https://discord.gg/botpress logo
Trying to set hubspot properties with integration ...
# šŸ¤help
s
Hey I have my bot creating / updating records in hubspot which is working correctly however when I try and update any additional properties I receive an error which stops execution when searching for the contact - I am not searching on these additional properties, the search only fails and gives the below error if additional properties are set in Update or Create Contact. This error happens when searching hubspot for the contact, ie before any create or update operation. This error only shows if I am trying to set additional properties (whether they are standard or custom properties) in the Update or Create Contact cards { "name": "TypeError", "message": "n.clone is not a function. (In 'n.clone()', 'n.clone' is undefined)", "stack": "@https://studio.botpress.cloud/assets/vendor-24aa416.js:31478:51\nmap@[native code]\nclone@https://studio.botpress.cloud/assets/vendor-24aa416.js:31478:36\nclone@https://studio.botpress.cloud/assets/vendor-24aa416.js:29286:45\nclone@https://studio.botpress.cloud/assets/vendor-24aa416.js:30388:23\nclone@https://studio.botpress.cloud/assets/vendor-24aa416.js:29633:35\nmetadata@https://studio.botpress.cloud/assets/vendor-24aa416.js:28454:27\n@https://studio.botpress.cloud/assets/index-24aa416.js:41305:101" }
f
It looks like the error is coming from how the HubSpot connector is handling extra properties during the update/create step, not from the search itself. I’ve worked on similar Botpress + HubSpot setups and can help you debug this so your custom/standard properties map correctly. Could you share how you’re formatting those additional fields (e.g. JSON structure) when passing them into the card? @silly-tailor-11678
s
The errors occurs during the search contact stage, I know it seems odd, I don't get a response message when the additional properties are set. Setting them via the cards additional properties section. https://cdn.discordapp.com/attachments/1422826886123360256/1422853482704277594/Screenshot_2025-10-01_at_3.50.43_pm.png?ex=68de2f11&is=68dcdd91&hm=f0c091378f194efff1caac285b01783f877a61a750b3ac1488f62b69a3c793a8&
f
I see what you mean, the error isn’t really about HubSpot search itself but how Botpress handles those extra properties before sending the request. This kind of issue usually comes down to the way properties are being parsed or mapped in the connector. I’ve dealt with this before and can help you sort it out directly so you don’t waste more time testing. Let’s take this privately and I’ll help you get it working smoothly. @silly-tailor-11678