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
[email protected] 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.