Troubleshoot implementation errors (Web)
If your CMP implementation uses Google Advertising Products as a vendor, Google offers a troubleshooting guide to help with any errors you may encounter. Click here to read more.
Your organization may receive error reports having implemented the IAB TCF API function on your website or use of this function through the browser console. This article lists common error reports and suggestions on how to troubleshoot the problems.
Error report
Description
Solution
HTTP error 404, 401, 40X
The first layer does not appear, a 404 error message is seen in the browser console.
Check that the property name for your website is included in the vendor list.
HTTP error 500 internal server error
The first layer does not appear, a 500 error message is seen in the browser console.
Check that there is an active vendor list for your campaign.
If your property is running a unified campaign check that Multi campaign is enabled in the Sourcepoint dashboard.
• invalid callback function
• n is not a function
• Your organization or an on-page vendor has passed an invalid command to the TCF API.
• Your organization or an on-page vendor has passed an invalid callback function to the TCF API.
Check that the command sent in the __tcfapi() function is recognized and spelt correctly.
Check that the callback function is being called correctly by the __tcfapi() function.
Uncaught TypeError: Cannot read property 'config' of undefined
• The TCFv2 and CCPA libraries are loading before the Sourcepoint stub code and configuration.
Please ensure that the Sourcepoint stub code & configuration is positioned as early as possible in the HTML code.
Error in messagingWithoutDetection: RequestError: Server request error: 400 at XMLHttpRequest.<anonymous>
• Values for accountID missing or incorrectly set.
• Values for propertyID or propertyHref missing or incorrectly set.
Value for env incorrectly set
Check that the correct accountID value is present in the Sourcepoint configuration code.
Check that the correct propertyID or propertyHref value is present in the Sourcepoint configuration code.
The accountID, propertyID, propertyHref can be found from the Sourcepoint analytics dashboard.
The value for env can be "stage" or "public". Check the Sourcepoint dashboard that the value matches what has been set in the campaign setup.
Uncaught TypeError: Cannot read wrapperMessagingWithoutDetection.js:1 property 'replace' of undefined
baseEndpoint is not set.
baseEndpoint value is incorrectly set to the agreed CNAME
• Check that the baseEndpoint value has been set.
• If a CNAME has been set make sure the baseEndpoint value matches the CNAME value.
Response from the __tcfapi() function is null. The flag success returns false
No data is returned from the __tcfapi() function.
Check that the command sent in the __tcfapi() function is recognized and spelt correctly.
Last modified 3mo ago
Export as PDF
Copy link