Issue
When trying to download a module from the Mendix Team Server using the Mendix Model SDK, you get the following error message:
Unhandled Rejection at: {error: {…}, statusCode: 413, url: 'https://model.api.mendix.com/v1/wc/[ID]/deltas'}
index.js:1189
Reason: {"error":{"message":"Cannot parse the request body. request entity too large"},"statusCode":413,"url":"https://model.api.mendix.com/v1/wc/[ID]/deltas"}Environment
- Mendix Model SDK
- Mendix Team Server
Cause
Every time there are changes to models, the Model SDK calculates deltas and sends them to the server when it calls the functionflushChanges(). Due to the high number of changes being made at once, the server may reject the request based on its size.
Solution/Workaround
The deltas should be sent in batches by applying the changes in multiple steps and flush the changes after each step using the function await model.flushChanges()(flushchanges).
Internal information related
- 230406
- C1GAEDR8R/p1728309625793779
0 Comments