Hi @Teun ,
Thank you for your inputs. I’m able to get past the issue. But I’m facing another issue as follows:
API used: hubspotClient.cms.hubdb.rowsApi.createTableRow(tableIdOrName, HubDbTableRowV3Request);
Issue:
2022-07-14T17:22:27.961Z ERROR {
"statusCode": 401,
"body": {
"status": "error",
"message": "Authentication credentials not found. This API supports both API Key and OAuth 2.0 authentication and you can find more details at https://developers.hubspot.com/docs/methods/auth/oauth-overview",
"correlationId": "ac67f190-a273-49dd-8839-df0d28fd7554",
"category": "INVALID_AUTHENTICATION"
},
"headers": {
"date": "Thu, 14 Jul 2022 17:22:27 GMT",
"content-type": "application/json;charset=utf-8",
"content-length": "316",
"connection": "close",
"cf-ray": "72abf0cc080559fd-IAD",
"strict-transport-security": "max-age=31536000; includeSubDomains; preload",
"vary": "Accept-Encoding",
"cf-cache-status": "DYNAMIC",
"access-control-allow-credentials": "true",
"access-control-allow-headers": "Origin, X-Requested-With, Content-Type, Accept, Accept-Charset, Accept-Encoding",
"access-control-allow-methods": "GET",
"expect-ct": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
"x-hubspot-correlation-id": "ac67f190-a273-49dd-8839-df0d28fd7554",
"x-trace": "2B05231134A56B035C6EA68FDFF584F7E366CB8AC0000000000000000000",
"report-to": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=bjYHRlpWhmWyODzqB9%2FIKXzvdDqlKOmjeqG0m1bowFsfpjf8CH9oeV4hukYn6sxpKdOJpk3qN1cz1xiQvVF4ZX%2F30Ryj59sRbPsSXB5IVAnif43xLJ8aYPoiCVd%2BF3mR\"}],\"group\":\"cf-nel\",\"max_age\":604800}",
"nel": "{\"success_fraction\":0.01,\"report_to\":\"cf-nel\",\"max_age\":604800}",
"server": "cloudflare",
"alt-svc": "h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "api.hubapi.com",
"port": 443,
"hostname": "api.hubapi.com",
"hash": null,
"search": null,
"query": null,
"pathname": "/cms/v3/hubdb/tables/test_table/rows",
"path": "/cms/v3/hubdb/tables/test_table/rows",
"href": "https://api.hubapi.com/cms/v3/hubdb/tables/test_table/rows"
},
"method": "POST",
"headers": {
"User-Agent": "hubspot-api-client-nodejs; 3.4.1",
"Accept": "application/json",
"content-type": "application/json",
"content-length": 118
}
}
}
Please let me know if I’m missing on something or how can I provide the required authentication credentials here.