contentful-cli icon indicating copy to clipboard operation
contentful-cli copied to clipboard

Export creates improper json

Open mikkoluurila opened this issue 1 year ago • 6 comments

Expected Behavior

I'm exporting an environment from a space and should be getting proper json file, but I'm not.

Actual Behavior

Here's the beginning of the (a lot longer) json I get, but the errors are obvious from the beginning. These continue throughout the whole file.

"contentTypes":,
   [
    {"sys":
       {"space":
         {"sys":
           {"type":
            "Link" "linkType":,
            "Space" "id":,
            "****"
          }

Cli output is:

The export took less than a minute (4s) Stored space data to json file at: ***** The following 0 errors and 6 warnings occurred: 15:58:08 - Rate limit error occurred. Waiting for 1519 ms before retrying... 15:58:08 - Rate limit error occurred. Waiting for 1566 ms before retrying... 15:58:08 - Rate limit error occurred. Waiting for 1528 ms before retrying... 15:58:08 - Rate limit error occurred. Waiting for 1575 ms before retrying... 15:58:08 - Rate limit error occurred. Waiting for 1690 ms before retrying... 15:58:08 - Rate limit error occurred. Waiting for 1599 ms before retrying... The export was successful. Done

Steps to Reproduce

I'm running the following command: contentful space export --space-id ********* --environment-id master --management-token ******* --content-file master_export20240925.json

Environment

I've tested with node 18.13.0 and 20.9.0. I'm running it in windows 11 command line. contentful-cli version is 3.3.11

mikkoluurila avatar Sep 25 '24 12:09 mikkoluurila

same issue here!

code-by-gijs avatar Sep 25 '24 13:09 code-by-gijs

Same issue here with version 3.3.11 running on both MacOS Sonoma and Debian bookworm

SamCarty avatar Sep 25 '24 16:09 SamCarty

Hello! Same issue here on Mac Sonoma. I tried with several previous versions of the CLI but same result.

camimora avatar Sep 26 '24 02:09 camimora

Duplicate of https://github.com/contentful/contentful-cli/issues/2761

nickamckenna avatar Sep 26 '24 08:09 nickamckenna

A recent contentful-cli release of v3.3.12 fixed this issue for us

(We were experiencing this problem when running the export inside a Debian Docker Container)

chris-cazaly-coop avatar Sep 26 '24 14:09 chris-cazaly-coop

A recent contentful-cli release of v3.3.12 fixed this issue for us

(We were experiencing this problem when running the export inside a Debian Docker Container)

Thanks, yes, working for me as well with 3.3.12.

camimora avatar Sep 26 '24 15:09 camimora

I'll go ahead and close this issue now that the problem has been resolved (as of 3.3.12). Thanks all for reporting and confirming here when the fix was released.

jjolton-contentful avatar Mar 05 '25 15:03 jjolton-contentful