Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

'npm run setup' gives 403 error #4

Closed
sundararajansarathy opened this issue Jun 26, 2020 · 7 comments
Closed

'npm run setup' gives 403 error #4

sundararajansarathy opened this issue Jun 26, 2020 · 7 comments

Comments

@sundararajansarathy
Copy link

sundararajansarathy commented Jun 26, 2020

Hello,

I am new to Contentful and trying out the course. As part of the course 'Create a Landing page', I am setting up the space in local. When I run 'npm run setup', I endup with 403 error as below:

_`my-home> ~/Documents/Contentful/tld (master=) $ npm run setup

the-learning-demo@1.0.0 setup /home//Documents/Contentful/tld
node setup.js

To set up this project you need to provide your Space ID
and the belonging API access tokens.

You can find all the needed information in your Contentful space under:

app.contentful.com -> Space Settings -> API keys

The Content Management API Token
will be used to import and write data to your space.

The Content Delivery API Token
will be used to ship published production-ready content in your Gatsby app.

Ready? Let's do it! 🎉

? Your Space ID
? Your Content Management API access token
? Your Content Delivery API access token
Writing config file...
Config file /home//Documents/Contentful/tld/src/components/config.js written
┌──────────────────────────────────────────────────┐
│ The following entities are going to be imported: │
├────────────────────────────────┬─────────────────┤
│ Content Types │ 15 │
├────────────────────────────────┼─────────────────┤
│ Editor Interfaces │ 15 │
├────────────────────────────────┼─────────────────┤
│ Entries │ 42 │
├────────────────────────────────┼─────────────────┤
│ Assets │ 33 │
├────────────────────────────────┼─────────────────┤
│ Locales │ 2 │
├────────────────────────────────┼─────────────────┤
│ Webhooks │ 0 │
└────────────────────────────────┴─────────────────┘
✔ Validating content-file
✔ Initialize client (1s)
✔ Checking if destination space already has any content and retrieving it (3s)
✔ Apply transformations to source data (1s)
✔ Push content to destination space
✔ Connecting to space (1s)
✔ Importing Locales (2s)
✔ Importing Content Types (3s)
✔ Publishing Content Types (10s)
✔ Importing Editor Interfaces (14s)
✔ Importing Assets (38s)
✔ Publishing Assets (21s)
✔ Archiving Assets (1s)
✔ Importing Content Entries (22s)
✔ Publishing Content Entries (28s)
✔ Archiving Entries (1s)
✔ Creating Web Hooks (1s)
Finished importing all data
┌────────────────────────┐
│ Imported entities │
├───────────────────┬────┤
│ Locales │ 2 │
├───────────────────┼────┤
│ Content Types │ 14 │
├───────────────────┼────┤
│ Editor Interfaces │ 14 │
├───────────────────┼────┤
│ Assets │ 33 │
├───────────────────┼────┤
│ Published Assets │ 33 │
├───────────────────┼────┤
│ Archived Assets │ 0 │
├───────────────────┼────┤
│ Entries │ 39 │
├───────────────────┼────┤
│ Published Entries │ 38 │
├───────────────────┼────┤
│ Archived Entries │ 0 │
├───────────────────┼────┤
│ Webhooks │ 0 │
└───────────────────┴────┘
The import took 2 minutes (135s)

The following 7 errors and 7 warnings occurred:

18:05:04 - AccessDenied: Status: 403 - Forbidden - Message: Forbidden - Request ID: c80cb58760a09aad21ba1f185c5948a5
18:05:72 - Rate limit error occurred. Waiting for 1533 ms before retrying...
18:05:73 - Rate limit error occurred. Waiting for 1678 ms before retrying...
18:05:74 - Rate limit error occurred. Waiting for 1664 ms before retrying...
18:06:48 - Rate limit error occurred. Waiting for 1566 ms before retrying...
18:06:48 - Rate limit error occurred. Waiting for 1540 ms before retrying...
18:06:48 - Rate limit error occurred. Waiting for 1645 ms before retrying...
18:06:48 - Rate limit error occurred. Waiting for 1543 ms before retrying...
18:07:35 - BadRequest: Status: 400 - Bad Request - Message: The content type you sent could not be found or was not activated. - Request ID: 426f78896ed4af540950d6cc48236da2
18:07:59 - BadRequest: Status: 400 - Bad Request - Message: The content type you sent could not be found or was not activated. - Request ID: df713559f000ab0ccdfa55c1c10c0561
18:07:21 - BadRequest: Status: 400 - Bad Request - Message: The content type you sent could not be found or was not activated. - Request ID: 6ddf00757dd4772a7922c609b4e0d9c8
18:07:21 - UnresolvedLinks: Status: 422 - Unprocessable Entity - Message: Validation error - Details: notResolvable, notResolvable - Request ID: d930d448b8ad9d4fb4703a124a9371a2
18:07:49 - UnresolvedLinks: Status: 422 - Unprocessable Entity - Message: Validation error - Details: notResolvable, notResolvable - Request ID: 2a66d3b49b1b2be08ecad30b53648ed2
18:07:49 - Could not publish the following entities: Paradise Beach Ocean Resort (33ELpSwa3u0wIMooyCaa2w)

Stored the detailed error log file at:
/home//Documents/Contentful/tld/contentful-import-error-log-z03ztmbv2w5i-2020-06-26T18-05-56.json
(node:15436) UnhandledPromiseRejectionWarning: ContentfulMultiError: Errors occured
at then (/home//Documents/Contentful/tld/node_modules/contentful-import/dist/index.js:202:28)
at tryCatcher (/home//Documents/Contentful/tld/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home//Documents/Contentful/tld/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/home//Documents/Contentful/tld/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/home//Documents/Contentful/tld/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/home//Documents/Contentful/tld/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/home//Documents/Contentful/tld/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/home//Documents/Contentful/tld/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home//Documents/Contentful/tld/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues (/home//Documents/Contentful/tld/node_modules/bluebird/js/release/async.js:15:14)
at runCallback (timers.js:794:20)
at tryOnImmediate (timers.js:752:5)
at processImmediate [as immediateCallback] (timers.js:729:5)
(node:15436) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 20)
(node:15436) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
my-home> ~/Documents/Contentful/tld (master=) $ `

Can anyone please help?

Attached is the full log of the setup I am trying now.
setup-error.log

I got the Space Id & CDA token from Settings -> API Keys
I got the CMA token from Settings -> API Keys -> Content management tokens & generated a Personal token.

Please let me know if I am going the right way.

@skikirkwood
Copy link
Collaborator

Hi There, can you post the error log file, /home//Documents/Contentful/tld/contentful-import-error-log-z03ztmbv2w5i-2020-06-26T18-05-56.json here so we can take a look at it? Thank you.

@skikirkwood
Copy link
Collaborator

Can you also let us know what version of node.js you are using.

@sundararajansarathy
Copy link
Author

sundararajansarathy commented Jun 27, 2020

~/Documents/Contentful/tld (master=) $ npm -v
3.5.2

~/Documents/Contentful/tld (master=) $ node -v
v8.10.0

Please find the error log below:

[ { "ts": "2020-06-26T12:35:43.041Z", "level": "error", "error": { "name": "AccessDenied", "entity": { "sys": { "space": { "sys": { "type": "Link", "linkType": "Space", "id": "wgjek2j957u7" } }, "id": "headline", "type": "ContentType", "createdAt": "2020-04-01T20:01:44.925Z", "updatedAt": "2020-04-01T20:01:49.215Z", "environment": { "sys": { "id": "master", "type": "Link", "linkType": "Environment" } }, "publishedVersion": 1, "publishedAt": "2020-04-01T20:01:49.215Z", "firstPublishedAt": "2020-04-01T20:01:49.215Z", "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "publishedCounter": 1, "version": 2, "publishedBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } } }, "displayField": "name", "name": "Headline", "description": "", "fields": [ { "id": "name", "name": "Name", "type": "Symbol", "localized": false, "required": false, "validations": [ ], "disabled": false, "omitted": false }, { "id": "headline", "name": "Headline", "type": "Symbol", "localized": true, "required": false, "validations": [ ], "disabled": false, "omitted": false }, { "id": "subHeadline", "name": "SubHeadline", "type": "Symbol", "localized": true, "required": false, "validations": [ ], "disabled": false, "omitted": false } ] }, "data": { "status": 403, "statusText": "Forbidden", "message": "Forbidden", "details": { "reasons": [ "usageExceeded", "You do not have permissions to create on ContentType, please contact your administrator for more information." ] }, "request": { "url": "content_types/headline", "headers": { "Accept": "application/json, text/plain, */*", "Content-Type": "application/vnd.contentful.management.v1+json", "X-Contentful-User-Agent": "app contentful.import/7.8.7; feature library-import; sdk contentful-management.js/5.27.2; platform node.js/v8.10.0; os Linux/4.15.0-106-generic;", "Authorization": "Bearer ...v_VIo", "user-agent": "node.js/v8.10.0", "Accept-Encoding": "gzip", "Content-Length": 476 }, "method": "put", "payloadData": "{\"displayField\":\"name\",\"name\":\"Headline\",\"description\":\"\",\"fields\":[{\"id\":\"name\",\"name\":\"Name\",\"type\":\"Symbol\",\"localized\":false,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"headline\",\"name\":\"Headline\",\"type\":\"Symbol\",\"localized\":true,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false},{\"id\":\"subHeadline\",\"name\":\"SubHeadline\",\"type\":\"Symbol\",\"localized\":true,\"required\":false,\"validations\":[],\"disabled\":false,\"omitted\":false}]}" }, "requestId": "c80cb58760a09aad21ba1f185c5948a5" } } }, { "ts": "2020-06-26T12:37:04.356Z", "level": "error", "error": { "name": "BadRequest", "entity": { "original": { "sys": { "space": { "sys": { "type": "Link", "linkType": "Space", "id": "wgjek2j957u7" } }, "id": "11WW792zpWCg2asWiaYmku", "type": "Entry", "createdAt": "2020-04-01T20:03:09.325Z", "updatedAt": "2020-04-01T20:03:50.581Z", "environment": { "sys": { "id": "master", "type": "Link", "linkType": "Environment" } }, "publishedVersion": 1, "publishedAt": "2020-04-01T20:03:50.581Z", "firstPublishedAt": "2020-04-01T20:03:50.581Z", "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "publishedCounter": 1, "version": 2, "publishedBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "contentType": { "sys": { "type": "Link", "linkType": "ContentType", "id": "headline" } } }, "fields": { "name": { "en-US": "Rooms and Suites Headline" }, "headline": { "de-DE": "Zimmer und Suiten", "en-US": "Rooms and Suites" } } }, "transformed": { "sys": { "space": { "sys": { "type": "Link", "linkType": "Space", "id": "wgjek2j957u7" } }, "id": "11WW792zpWCg2asWiaYmku", "type": "Entry", "createdAt": "2020-04-01T20:03:09.325Z", "updatedAt": "2020-04-01T20:03:50.581Z", "environment": { "sys": { "id": "master", "type": "Link", "linkType": "Environment" } }, "publishedVersion": 1, "publishedAt": "2020-04-01T20:03:50.581Z", "firstPublishedAt": "2020-04-01T20:03:50.581Z", "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "publishedCounter": 1, "version": 2, "publishedBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "contentType": { "sys": { "type": "Link", "linkType": "ContentType", "id": "headline" } } }, "fields": { "name": { "en-US": "Rooms and Suites Headline" }, "headline": { "de-DE": "Zimmer und Suiten", "en-US": "Rooms and Suites" } } } }, "data": { "status": 400, "statusText": "Bad Request", "message": "The content type you sent could not be found or was not activated.", "details": { }, "request": { "url": "entries/11WW792zpWCg2asWiaYmku", "headers": { "Accept": "application/json, text/plain, */*", "Content-Type": "application/vnd.contentful.management.v1+json", "X-Contentful-User-Agent": "app contentful.import/7.8.7; feature library-import; sdk contentful-management.js/5.27.2; platform node.js/v8.10.0; os Linux/4.15.0-106-generic;", "Authorization": "Bearer ...v_VIo", "user-agent": "node.js/v8.10.0", "Accept-Encoding": "gzip", "X-Contentful-Content-Type": "headline", "Content-Length": 125 }, "method": "put", "payloadData": "{\"fields\":{\"name\":{\"en-US\":\"Rooms and Suites Headline\"},\"headline\":{\"de-DE\":\"Zimmer und Suiten\",\"en-US\":\"Rooms and Suites\"}}}" }, "requestId": "426f78896ed4af540950d6cc48236da2" } } }, { "ts": "2020-06-26T12:37:11.592Z", "level": "error", "error": { "name": "BadRequest", "entity": { "original": { "sys": { "space": { "sys": { "type": "Link", "linkType": "Space", "id": "wgjek2j957u7" } }, "id": "33tkP252KAmcyok8q8aOEm", "type": "Entry", "createdAt": "2020-04-01T20:03:13.975Z", "updatedAt": "2020-04-01T20:03:49.413Z", "environment": { "sys": { "id": "master", "type": "Link", "linkType": "Environment" } }, "publishedVersion": 1, "publishedAt": "2020-04-01T20:03:49.413Z", "firstPublishedAt": "2020-04-01T20:03:49.413Z", "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "publishedCounter": 1, "version": 2, "publishedBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "contentType": { "sys": { "type": "Link", "linkType": "ContentType", "id": "headline" } } }, "fields": { "name": { "en-US": "Amenities Headline" }, "headline": { "de-DE": "Ausstattung", "en-US": "Amenities" }, "subHeadline": { "de-DE": "und andere Luxusgüter", "en-US": "and other luxuries" } } }, "transformed": { "sys": { "space": { "sys": { "type": "Link", "linkType": "Space", "id": "wgjek2j957u7" } }, "id": "33tkP252KAmcyok8q8aOEm", "type": "Entry", "createdAt": "2020-04-01T20:03:13.975Z", "updatedAt": "2020-04-01T20:03:49.413Z", "environment": { "sys": { "id": "master", "type": "Link", "linkType": "Environment" } }, "publishedVersion": 1, "publishedAt": "2020-04-01T20:03:49.413Z", "firstPublishedAt": "2020-04-01T20:03:49.413Z", "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "publishedCounter": 1, "version": 2, "publishedBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "contentType": { "sys": { "type": "Link", "linkType": "ContentType", "id": "headline" } } }, "fields": { "name": { "en-US": "Amenities Headline" }, "headline": { "de-DE": "Ausstattung", "en-US": "Amenities" }, "subHeadline": { "de-DE": "und andere Luxusgüter", "en-US": "and other luxuries" } } } }, "data": { "status": 400, "statusText": "Bad Request", "message": "The content type you sent could not be found or was not activated.", "details": { }, "request": { "url": "entries/33tkP252KAmcyok8q8aOEm", "headers": { "Accept": "application/json, text/plain, */*", "Content-Type": "application/vnd.contentful.management.v1+json", "X-Contentful-User-Agent": "app contentful.import/7.8.7; feature library-import; sdk contentful-management.js/5.27.2; platform node.js/v8.10.0; os Linux/4.15.0-106-generic;", "Authorization": "Bearer ...v_VIo", "user-agent": "node.js/v8.10.0", "Accept-Encoding": "gzip", "X-Contentful-Content-Type": "headline", "Content-Length": 183 }, "method": "put", "payloadData": "{\"fields\":{\"name\":{\"en-US\":\"Amenities Headline\"},\"headline\":{\"de-DE\":\"Ausstattung\",\"en-US\":\"Amenities\"},\"subHeadline\":{\"de-DE\":\"und andere Luxusgüter\",\"en-US\":\"and other luxuries\"}}}" }, "requestId": "df713559f000ab0ccdfa55c1c10c0561" } } }, { "ts": "2020-06-26T12:37:12.217Z", "level": "error", "error": { "name": "BadRequest", "entity": { "original": { "sys": { "space": { "sys": { "type": "Link", "linkType": "Space", "id": "wgjek2j957u7" } }, "id": "2OvEzkxULKcwAIACyCkwOW", "type": "Entry", "createdAt": "2020-04-01T20:03:13.040Z", "updatedAt": "2020-04-01T20:03:42.499Z", "environment": { "sys": { "id": "master", "type": "Link", "linkType": "Environment" } }, "publishedVersion": 1, "publishedAt": "2020-04-01T20:03:42.499Z", "firstPublishedAt": "2020-04-01T20:03:42.499Z", "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "publishedCounter": 1, "version": 2, "publishedBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "contentType": { "sys": { "type": "Link", "linkType": "ContentType", "id": "headline" } } }, "fields": { "name": { "en-US": "Hotel Overview Headline" }, "headline": { "de-DE": "Hotel-Übersicht", "en-US": "Hotel Overview" }, "subHeadline": { "de-DE": "Was macht Ihren Aufenthalt im Paradise Ocean Beach Resort so toll", "en-US": "What makes your stay at Paradise Ocean Beach Resort so great" } } }, "transformed": { "sys": { "space": { "sys": { "type": "Link", "linkType": "Space", "id": "wgjek2j957u7" } }, "id": "2OvEzkxULKcwAIACyCkwOW", "type": "Entry", "createdAt": "2020-04-01T20:03:13.040Z", "updatedAt": "2020-04-01T20:03:42.499Z", "environment": { "sys": { "id": "master", "type": "Link", "linkType": "Environment" } }, "publishedVersion": 1, "publishedAt": "2020-04-01T20:03:42.499Z", "firstPublishedAt": "2020-04-01T20:03:42.499Z", "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "publishedCounter": 1, "version": 2, "publishedBy": { "sys": { "type": "Link", "linkType": "User", "id": "45VX0tlnhX9oU1TT1LUzFY" } }, "contentType": { "sys": { "type": "Link", "linkType": "ContentType", "id": "headline" } } }, "fields": { "name": { "en-US": "Hotel Overview Headline" }, "headline": { "de-DE": "Hotel-Übersicht", "en-US": "Hotel Overview" }, "subHeadline": { "de-DE": "Was macht Ihren Aufenthalt im Paradise Ocean Beach Resort so toll", "en-US": "What makes your stay at Paradise Ocean Beach Resort so great" } } } }, "data": { "status": 400, "statusText": "Bad Request", "message": "The content type you sent could not be found or was not activated.", "details": { }, "request": { "url": "entries/2OvEzkxULKcwAIACyCkwOW", "headers": { "Accept": "application/json, text/plain, */*", "Content-Type": "application/vnd.contentful.management.v1+json", "X-Contentful-User-Agent": "app contentful.import/7.8.7; feature library-import; sdk contentful-management.js/5.27.2; platform node.js/v8.10.0; os Linux/4.15.0-106-generic;", "Authorization": "Bearer ...v_VIo", "user-agent": "node.js/v8.10.0", "Accept-Encoding": "gzip", "X-Contentful-Content-Type": "headline", "Content-Length": 283 }, "method": "put", "payloadData": "{\"fields\":{\"name\":{\"en-US\":\"Hotel Overview Headline\"},\"headline\":{\"de-DE\":\"Hotel-Übersicht\",\"en-US\":\"Hotel Overview\"},\"subHeadline\":{\"de-DE\":\"Was macht Ihren Aufenthalt im Paradise Ocean Beach Resort so toll\",\"en-US\":\"What makes your stay at Paradise Ocean Beach Resort so great\"}}}" }, "requestId": "6ddf00757dd4772a7922c609b4e0d9c8" } } }, { "ts": "2020-06-26T12:37:29.219Z", "level": "error", "error": { "name": "UnresolvedLinks", "entity": { "sys": { "space": { "sys": { "type": "Link", "linkType": "Space", "id": "z03ztmbv2w5i" } }, "id": "33ELpSwa3u0wIMooyCaa2w", "type": "Entry", "createdAt": "2020-06-26T11:57:28.427Z", "updatedAt": "2020-06-26T12:37:06.632Z", "environment": { "sys": { "id": "master", "type": "Link", "linkType": "Environment" } }, "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "5ywHCJc2QvirNY5OeMjvRu" } }, "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "5ywHCJc2QvirNY5OeMjvRu" } }, "publishedCounter": 0, "version": 3, "contentType": { "sys": { "type": "Link", "linkType": "ContentType", "id": "product" } } }, "fields": { "title": { "en-US": "Paradise Beach Ocean Resort" }, "slug": { "en-US": "twd-paradise-beach" }, "seoMetadata": { "de-DE": { "sys": { "type": "Link", "linkType": "Entry", "id": "zIgbysfxtIkiq8s8OiQms" } }, "en-US": { "sys": { "type": "Link", "linkType": "Entry", "id": "35hDyPFaMwsKGcwcgqMCw0" } } }, "sections": { "en-US": [ { "sys": { "type": "Link", "linkType": "Entry", "id": "5DlwUXH0c0WAQqYOIYUQou" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "QhsSKqBwgCCemGOOua2ai" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "mQ2wPhtZCggIOIw6EA4EW" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "1BEWS4efbWyEmSEiSemOGk" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "2wDeIBuu6gQIomKEqYYYKi" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "11WW792zpWCg2asWiaYmku" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "rZc070QLsWKOIKU40GIWY" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "7y8tnfsAakS4GQi6um4sAg" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "3AeT0HEinm2UQ0qO8UIccE" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "33tkP252KAmcyok8q8aOEm" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "DIXzFVS5faISKmoAkQg8u" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "22GKqbOFv6oWmugiQsAmgY" } } ] } } }, "data": { "status": 422, "statusText": "Unprocessable Entity", "message": "Validation error", "details": { "errors": [ { "name": "notResolvable", "link": { "type": "Link", "linkType": "Entry", "id": "11WW792zpWCg2asWiaYmku" }, "path": [ "fields", "sections", "en-US", 5 ] }, { "name": "notResolvable", "link": { "type": "Link", "linkType": "Entry", "id": "33tkP252KAmcyok8q8aOEm" }, "path": [ "fields", "sections", "en-US", 9 ] } ] }, "request": { "url": "entries/33ELpSwa3u0wIMooyCaa2w/published", "headers": { "Accept": "application/json, text/plain, */*", "Content-Type": "application/vnd.contentful.management.v1+json", "X-Contentful-User-Agent": "app contentful.import/7.8.7; feature library-import; sdk contentful-management.js/5.27.2; platform node.js/v8.10.0; os Linux/4.15.0-106-generic;", "Authorization": "Bearer ...v_VIo", "user-agent": "node.js/v8.10.0", "Accept-Encoding": "gzip", "X-Contentful-Version": 3 }, "method": "put", "payloadData": null }, "requestId": "d930d448b8ad9d4fb4703a124a9371a2" } } }, { "ts": "2020-06-26T12:37:52.494Z", "level": "error", "error": { "name": "UnresolvedLinks", "entity": { "sys": { "space": { "sys": { "type": "Link", "linkType": "Space", "id": "z03ztmbv2w5i" } }, "id": "33ELpSwa3u0wIMooyCaa2w", "type": "Entry", "createdAt": "2020-06-26T11:57:28.427Z", "updatedAt": "2020-06-26T12:37:06.632Z", "environment": { "sys": { "id": "master", "type": "Link", "linkType": "Environment" } }, "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "5ywHCJc2QvirNY5OeMjvRu" } }, "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "5ywHCJc2QvirNY5OeMjvRu" } }, "publishedCounter": 0, "version": 3, "contentType": { "sys": { "type": "Link", "linkType": "ContentType", "id": "product" } } }, "fields": { "title": { "en-US": "Paradise Beach Ocean Resort" }, "slug": { "en-US": "twd-paradise-beach" }, "seoMetadata": { "de-DE": { "sys": { "type": "Link", "linkType": "Entry", "id": "zIgbysfxtIkiq8s8OiQms" } }, "en-US": { "sys": { "type": "Link", "linkType": "Entry", "id": "35hDyPFaMwsKGcwcgqMCw0" } } }, "sections": { "en-US": [ { "sys": { "type": "Link", "linkType": "Entry", "id": "5DlwUXH0c0WAQqYOIYUQou" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "QhsSKqBwgCCemGOOua2ai" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "mQ2wPhtZCggIOIw6EA4EW" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "1BEWS4efbWyEmSEiSemOGk" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "2wDeIBuu6gQIomKEqYYYKi" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "11WW792zpWCg2asWiaYmku" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "rZc070QLsWKOIKU40GIWY" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "7y8tnfsAakS4GQi6um4sAg" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "3AeT0HEinm2UQ0qO8UIccE" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "33tkP252KAmcyok8q8aOEm" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "DIXzFVS5faISKmoAkQg8u" } }, { "sys": { "type": "Link", "linkType": "Entry", "id": "22GKqbOFv6oWmugiQsAmgY" } } ] } } }, "data": { "status": 422, "statusText": "Unprocessable Entity", "message": "Validation error", "details": { "errors": [ { "name": "notResolvable", "link": { "type": "Link", "linkType": "Entry", "id": "11WW792zpWCg2asWiaYmku" }, "path": [ "fields", "sections", "en-US", 5 ] }, { "name": "notResolvable", "link": { "type": "Link", "linkType": "Entry", "id": "33tkP252KAmcyok8q8aOEm" }, "path": [ "fields", "sections", "en-US", 9 ] } ] }, "request": { "url": "entries/33ELpSwa3u0wIMooyCaa2w/published", "headers": { "Accept": "application/json, text/plain, */*", "Content-Type": "application/vnd.contentful.management.v1+json", "X-Contentful-User-Agent": "app contentful.import/7.8.7; feature library-import; sdk contentful-management.js/5.27.2; platform node.js/v8.10.0; os Linux/4.15.0-106-generic;", "Authorization": "Bearer ...v_VIo", "user-agent": "node.js/v8.10.0", "Accept-Encoding": "gzip", "X-Contentful-Version": 3 }, "method": "put", "payloadData": null }, "requestId": "2a66d3b49b1b2be08ecad30b53648ed2" } } }, { "ts": "2020-06-26T12:37:52.495Z", "level": "error", "error": "Could not publish the following entities: Paradise Beach Ocean Resort (33ELpSwa3u0wIMooyCaa2w)" } ]

@sundararajansarathy
Copy link
Author

Updated node to latest version and still face the same issue. Attached logs for reference.

~/Documents/Contentful/tld (master=) $ node -v
v12.18.1

~/Documents/Contentful/tld (master=) $ npm -v
6.14.5

contentful-import-error-log-z03ztmbv2w5i-2020-06-27T09-12-14.json.log
setup-error-with-node-v12.log

@sundararajansarathy
Copy link
Author

The setup log has this log entry - "09:14:47 - Could not publish the following entities: Paradise Beach Ocean Resort (33ELpSwa3u0wIMooyCaa2w)".

If I go to the web app and try to Publish the entry "Paradise Beach Ocean Resort" manually , I get the error "Error publishing “Paradise Beach Ocean Resort”: Some linked entries are missing."

image (4)

@skikirkwood
Copy link
Collaborator

Found it! The error log shows:

"data": { "status": 403, "statusText": "Forbidden", "message": "Forbidden", "details": { "reasons": [ "usageExceeded", "You do not have permissions to create on ContentType, please contact your administrator for more information." ] },

So I believe the issue is the space/environment you are using does not support adding 15 additional content types. The space needs the ability to create 15 new content types, and one additional environment. If you go to "Settings" -> "Usage" and scroll down you will see how many content types you are using out of the total number allowed for the space.

I know that a free Contentful space is sufficient to install and run this demo, so you can try creating a new free subscription and the demo app should install and work fine. Let me know.

@sundararajansarathy
Copy link
Author

Thank you, works with an empty space.

This ticket can be closed now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants