diff --git a/src/metatags/handler.js b/src/metatags/handler.js index c2963fb4..66db4b2b 100644 --- a/src/metatags/handler.js +++ b/src/metatags/handler.js @@ -20,7 +20,7 @@ import SeoChecks from './seo-checks.js'; async function fetchAndProcessPageObject(s3Client, bucketName, key, prefix, log) { const object = await getObjectFromKey(s3Client, bucketName, key, log); if (!object?.tags || typeof object.tags !== 'object') { - log.error(`No Scraped tags found in S3 ${key} object, body ${JSON.stringify(object.Body)}`); + log.error(`No Scraped tags found in S3 ${key} object, body ${JSON.stringify(object)}`); return null; } const pageUrl = key.slice(prefix.length - 1).replace('scrape.json', ''); // Remove the prefix and .json suffix