We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
May 26, 2022 7:45 AM - edited May 26, 2022 9:17 AM
I'm running through a weird issue. In my nodeJs application I'm trying to create single contact using basicApi.
It runs smoother in local environment when I test it using POSTMAN. But in dev environment when I implemented same code it started giving me errors.
I'm creating a new contact which doesn't exists in my hubspot GUI. But, when it runs through contact creation logic as you could see in the screenshot below, it gives an error that "contact already exists. Existing ID: 20301" And updates that contact with my given data. Basically, that contact doesn't exists but it still gives me that error and is updating contact that's not same as passed contact object.
Moreover, when I create contact in local environment, the contact's source is like this.
But for the dev environment (from where I'm getting an error) , source remains something else like this
I don't have any idea why source is different for same task done using same code. Is there any configuration related problems that can be solved? If so, how?
Any help will be highly appreciated.
Solved! Go to Solution.
May 27, 2022 3:05 AM
This guy faced a similar issue in past. And his reply worked out well.
Here's link to his reply about what he did that solved the issue.
May 27, 2022 3:05 AM
This guy faced a similar issue in past. And his reply worked out well.
Here's link to his reply about what he did that solved the issue.
May 26, 2022 11:25 AM
@Teun , have you seen anything like this before?
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |
May 27, 2022 2:57 AM
Hi @dennisedson ,
Nope, this error is completely new to me. I do typically check if a contact exists before trying to create or update the contact to prevent errors.