-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Description
I am trying to export entries from a client's environment where I do not have permissions to view Media/Assets
As a result, the export is failing
{
"ts": "2025-02-21T16:15:04.675Z",
"level": "error",
"error": {
"originalError": {
"name": "NotFound",
"message": "{\n \"status\": 404,\n \"statusText\": \"Not Found\",\n \"message\": \"The resource could not be found.\",\n \"details\": {\n \"space\": \"*****\",\n \"type\": \"Asset\"\n },\n \"request\": {\n \"url\": \"/spaces/*****/environments/*****/assets\",\n \"headers\": {\n \"Accept\": \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/vnd.contentful.management.v1+json\",\n \"X-Contentful-User-Agent\": \"app contentful.cli/3.7.1; feature space-export; sdk contentful-management.js/11.40.2; platform node.js/v20.16.0; os macOS/v20.16.0;\",\n \"CF-Sequence\": \"8f363922-568b-4df7-b1af-c13db3d37ea2\",\n \"Authorization\": \"Bearer ...amcuQ\",\n \"User-Agent\": \"axios/1.7.9\",\n \"Accept-Encoding\": \"gzip, compress, deflate, br\"\n },\n \"method\": \"get\"\n },\n \"requestId\": \"cfe8e3ba-eb42-4319-8d5d-11d3a6a78d88\"\n}"
},
"data": {
"status": 404,
"statusText": "Not Found",
"message": "The resource could not be found.",
"details": {
"space": "*****",
"type": "Asset"
},
"request": {
"url": "/spaces/*****/environments/*****/assets",
"headers": {
"Accept": "application/json, text/plain, */*",
"Content-Type": "application/vnd.contentful.management.v1+json",
"X-Contentful-User-Agent": "app contentful.cli/3.7.1; feature space-export; sdk contentful-management.js/11.40.2; platform node.js/v20.16.0; os macOS/v20.16.0;",
"CF-Sequence": "8f363922-568b-4df7-b1af-c13db3d37ea2",
"Authorization": "Bearer ...amcuQ",
"User-Agent": "axios/1.7.9",
"Accept-Encoding": "gzip, compress, deflate, br"
},
"method": "get"
},
"requestId": "cfe8e3ba-eb42-4319-8d5d-11d3a6a78d88"
}
}
}
Here is the CLI output (entries are exported successfully)
$ contentful space export --space-id=$CTF_SPACE_ID --management-token=$CTF_CMA_ACCESS_TOKEN --environment-id=$CTF_ENVIRONMENT_ID --config=./.contentful-export.content-only.config.json --exportDir=contentful-export --content-file=content-types-$CTF_SPACE_ID--CONTENT-$CTF_ENVIRONMENT_ID.json
[11:17:20] Initialize client [started]
[11:17:20] Initialize client (1s) [title changed]
[11:17:20] Initialize client (1s) [completed]
[11:17:20] Fetching data from space [started]
[11:17:20] Connecting to space [started]
[11:17:20] Connecting to space (1s) [title changed]
[11:17:20] Connecting to space (1s) [completed]
[11:17:20] Fetching content types data [started]
[11:17:20] Fetching content types data [skipped]
[11:17:20] Fetching tags data [started]
[11:17:20] Fetching tags data [skipped]
[11:17:20] Fetching editor interfaces data [started]
[11:17:20] Fetching editor interfaces data [skipped]
[11:17:20] Fetching content entries data [started]
[11:17:20] → ✔ Fetched 100 of 619 items (Page 1/7)
[11:17:21] → ✔ Fetched 100 of 619 items (Page 2/7)
[11:17:21] → ✔ Fetched 100 of 619 items (Page 3/7)
[11:17:21] → ✔ Fetched 100 of 619 items (Page 4/7)
[11:17:21] → ✔ Fetched 100 of 619 items (Page 5/7)
[11:17:21] → ✔ Fetched 100 of 619 items (Page 6/7)
[11:17:22] → ✔ Fetched 19 of 619 items (Page 7/7)
[11:17:22] Fetching content entries data (2s) [title changed]
[11:17:22] Fetching content entries data (2s) [completed]
[11:17:22] Fetching assets data [started]
[11:17:22] Fetching assets data (1s) [title changed]
[11:17:22] Fetching assets data (1s) [failed]
[11:17:22] → NotFound: Status: 404 - Not Found - Message: The resource could not be found. - Request ID: b646094d-a44d-494c-a53f-d4fad2c9d861
[11:17:22] Fetching data from space [failed]
[11:17:22] → NotFound: Status: 404 - Not Found - Message: The resource could not be found. - Request ID: b646094d-a44d-494c-a53f-d4fad2c9d861
Metadata
Metadata
Assignees
Labels
No labels