You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I normally get a 422 when there's some sort of mismatch or invalid content between my JSON file and the content model in contentful.
Actual Behavior
When I include a JSON file that has a field that is NOT in the contentful model, I end up in an infinite loop during the "Importing Content" phase, which results in various API rate limit errors, but NO 422 describing the problem.
Possible Solution
Just handle the error case where I import data that has fields that don't exist in contentful by throwing a 422 and making sure that gets back to the CLI tool.
Steps to Reproduce
Create a content model, create a JSON file to import into it, and run the import with --skip-model. As long as your JSON file has an EXTRA field not found on your content model, you will notice it hang and fail to report back errors.
Environment
node version 10.15.0
npm version 6.8.0
contentful CLI version 0.20.0
The text was updated successfully, but these errors were encountered:
Expected Behavior
I normally get a
422
when there's some sort of mismatch or invalid content between my JSON file and the content model in contentful.Actual Behavior
When I include a JSON file that has a field that is NOT in the contentful model, I end up in an infinite loop during the "Importing Content" phase, which results in various API rate limit errors, but NO
422
describing the problem.Possible Solution
Just handle the error case where I import data that has fields that don't exist in contentful by throwing a
422
and making sure that gets back to the CLI tool.Steps to Reproduce
Create a content model, create a JSON file to import into it, and run the import with
--skip-model
. As long as your JSON file has an EXTRA field not found on your content model, you will notice it hang and fail to report back errors.Environment
node version
10.15.0
npm version
6.8.0
contentful CLI version
0.20.0
The text was updated successfully, but these errors were encountered: