ContentfulManagementSDK createAssetFromFiles not creating the file


I’m trying to use the content-management-js sdk and the createAssetFromFiles function not returning error but not working.

npm version: “contentful-management”: “5.22.0”,

here is an example code:

With this example I got a new asset on the contentful UI, but it says:
Cannot publish until processing has finished

after I extend the code with:
.then(asset => asset.processForAllLocales())

I got 400 error when I go to the assets detail page on contentful website:

Request URL:
Request Method: GET
Status Code: 400

I’m on free plan right now.
Can anyone got this type of issue and help me investigating this createAssetFromFiles behaviour?