Strapi v4 PUT request failing for collection uploads with 100+ elements - unable to upload twice

System Information
  • Strapi Version: v4.5.4
  • Operating System: Win10 Pro, 21H2
  • Database: postgres:14.2-alpine
  • Node Version: v14.16.0
  • NPM Version: 8.19.2
  • Yarn Version:


I observed a weird behavior which seems like a bug. Anyone else has experienced this?
When I make a PUT request to the api in order to setup my collection, I cannot reliably upload more than 100 elements.

This is the structure of my collection:

TestAssets (Component (repeatable))

  • TestAssets (string)
  • Number (number)

When I making the PUT-request I attach the follwing json:

{ "data":{ "TestAssets":[ { "Title":"Title_0", "Number":0 }, { "Title":"Title_1", "Number":1 }, ... { "Title":"Title_99", "Number":99 } ] } }

I can successfully upload it once. The second time I try, it fails with an “InternalServerError”. It seems the data base gets corrupted. see screenshot and the console log of strapi in the following screenshot:

everything works fine as long as the element count is 99 or less.

For better understanding, here is a screenshot of the test collection type I craeted.