-
Notifications
You must be signed in to change notification settings - Fork 20
'npm run setup' gives 403 error #4
Comments
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. |
Can you also let us know what version of node.js you are using. |
~/Documents/Contentful/tld (master=) $ npm -v ~/Documents/Contentful/tld (master=) $ node -v Please find the error log below:
|
Updated node to latest version and still face the same issue. Attached logs for reference. ~/Documents/Contentful/tld (master=) $ node -v ~/Documents/Contentful/tld (master=) $ npm -v contentful-import-error-log-z03ztmbv2w5i-2020-06-27T09-12-14.json.log |
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." |
Found it! The error log shows:
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. |
Thank you, works with an empty space. This ticket can be closed now. |
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
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.
The text was updated successfully, but these errors were encountered: