Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

npm run setup error : "unknownKey" "default" #35

Open
Charles-Gerber opened this issue Oct 24, 2018 · 0 comments
Open

npm run setup error : "unknownKey" "default" #35

Charles-Gerber opened this issue Oct 24, 2018 · 0 comments

Comments

@Charles-Gerber
Copy link

I create a new space with the locale en-US on contentful and then when I run "npm run setup" i end up with this error:

[ { "ts": "2018-10-24T12:05:08.380Z", "level": "error", "error": { "name": "UnknownKey", "entity": { "name": "U.S. English", "code": "en-US", "fallbackCode": null, "default": true, "contentManagementApi": true, "contentDeliveryApi": true, "optional": false, "sys": { "type": "Locale", "id": "3Bb4qrZtqLzwN35dmTQ6a2", "version": 0, "space": { "sys": { "type": "Link", "linkType": "Space", "id": "28p9vvm1oxuw" } }, "createdBy": { "sys": { "type": "Link", "linkType": "User", "id": "066RqBikAjzKy0SWUEtFvH" } }, "createdAt": "2017-05-11T12:01:17Z", "updatedBy": { "sys": { "type": "Link", "linkType": "User", "id": "066RqBikAjzKy0SWUEtFvH" } }, "updatedAt": "2017-05-11T12:01:17Z" } }, "data": { "status": 400, "statusText": "Bad Request", "message": "The body you sent contains an unknown key.", "details": { "keys": [ "default" ] }, "request": { "url": "https://api.contentful.com:443/spaces/a0f3ch77buu1/environments/master/locales/1wRY6kDrgoQfN7T0YtVD7E", "headers": { "Accept": "application/json, text/plain, */*", "Content-Type": "application/vnd.contentful.management.v1+json", "X-Contentful-User-Agent": "app contentful.import/7.4.1; feature library-import; sdk contentful-management.js/5.2.1; platform node.js/v10.11.0; os macOS/17.7.0;", "Authorization": "Bearer ...6575f", "user-agent": "node.js/v10.11.0", "Accept-Encoding": "gzip", "X-Contentful-Version": 1, "Content-Length": 144 }, "method": "put", "payloadData": "{\"name\":\"U.S. English\",\"code\":\"en-US\",\"fallbackCode\":null,\"default\":true,\"contentManagementApi\":true,\"contentDeliveryApi\":true,\"optional\":false}" }, "requestId": "0cf2a413e766e5ee3eb07d53b96a9585" } } } ]

I tried to remove the field "default" but it is not working.
I think I can still go through the tutorial, but just to tell you that there is an error in the init script.

Cheers,
Charles

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

1 participant