worldia / textmaster-api

Simple PHP client for the Textmaster API
1 stars 5 forks source link

Request size limit #80

Open cdaguerre opened 8 years ago

cdaguerre commented 8 years ago

What is the maximum request size authorized by the textmaster servers? We ran into an issue where the api silently fails when the request size is too big. (empty response). We implemented this as a quick workaround (basically saving a maximum of 100 documents at a time) : https://github.com/worldia/textmaster-api/blob/master/lib/Textmaster/Model/Project.php#L255 /cc @aponsin

aponsin commented 8 years ago

There is no preset of maximum request size. However I am surprise, the API should never silently fail. What API endpoint are you referring to exactly ?

cdaguerre commented 8 years ago

It might have been an uncaught error which would be fixed by @jmleroux's PR (https://github.com/worldia/textmaster-api/pull/77) but either no documents were created at all, or only part of them were created when launching documents through clients/projects/'{projectId}/batch/documents