diff --git a/go.bat b/go.bat new file mode 100644 index 0000000..8a10b5d --- /dev/null +++ b/go.bat @@ -0,0 +1,7 @@ +@echo off +cd /d "%~dp0" + +if not exist logs mkdir logs + +echo ===== Avvio: %date% %time% ===== > logs\output.log +node src\hubspotConnector.js > logs\output.log 2>&1 \ No newline at end of file diff --git a/logs/output.log b/logs/output.log index 1e37038..ee8afea 100644 --- a/logs/output.log +++ b/logs/output.log @@ -1,30 +1,4 @@ -===== Avvio: Wed Aug 26 09:13:57 CEST 2026 ===== -◇ injected env (1) from .env // tip: ⌘ suppress logs { quiet: true } +◇ injected env (0) from .env // tip: ⌘ suppress logs { quiet: true } Retrieving data from Keystone... -TEST/DRY MODE: Date not modified on JSON file. -Data retrieved successfully! -Now Connecting to Hubspot... -getAccessToken -getAccessToken -New access token generated -Hubspot connection is ready! -Connection successful! ---- DRY RUN MODE: No changes will be saved to HubSpot --- -Preview Lead 1: -[ - { - id: 'videeshasawane@gmail.com', - idProperty: 'email', - properties: { - firstname: 'Videesha ', - lastname: 'Sawane', - email: 'videeshasawane@gmail.com', - phone: '+91 8454046665', - corso_keystone: 'Italian Culinary Program', - leadsource: 'keystone' - } - } -] -Process DRY-RUN completed! -HubSpot Batch Response: DRY-RUN mode successful -All contacts have been created! +Error fetching the data: Keystone HTTP Error 403 (Forbidden): {"error":"Unauthorized","code":"401","message":"key missmatch"} +Error in processing data: Keystone HTTP Error 403 (Forbidden): {"error":"Unauthorized","code":"401","message":"key missmatch"}