ConvertAPI / convertapi-library-java

A Java library for the ConvertAPI
https://www.convertapi.com
Other
17 stars 11 forks source link

"InvalidParameters":{"Timeout":["The field Timeout must be between 10 and 1200."]} #13

Closed phanindars closed 1 year ago

phanindars commented 3 years ago

Getting the error "InvalidParameters":{"Timeout":["The field Timeout must be between 10 and 1200."]}, when running the sample conversion as below:

System.out.println("Converting WEB to PDF"); CompletableFuture result = ConvertApi.convert("web", "pdf", new Param("url", "https://en.wikipedia.org/wiki/Data_conversion"), new Param("filename", "web-example") );

    Path tmpDir = Paths.get(System.getProperty("java.io.tmpdir"));
    CompletableFuture<Path> pdfFile = result.get().saveFile(tmpDir);

    System.out.println("PDF file saved to: " + pdfFile.get().toString());

Note: This is the code snippet from the examples provided by you.

JonasJasas commented 1 year ago

Fixed in previous versions.