Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalida operation for task #55

Open
ArthurRM opened this issue Apr 25, 2024 · 0 comments
Open

Invalida operation for task #55

ArthurRM opened this issue Apr 25, 2024 · 0 comments

Comments

@ArthurRM
Copy link

ArthurRM commented Apr 25, 2024

I have the following code:

final JobResponse createJobResponse = client.jobs().create(
            ImmutableMap.of(
                "import-pdf", new UrlImportRequest().setUrl("https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"),
                "pdf-to-png", new ConvertFilesTaskRequest()
                    .setInput("import-pdf")
                    .setInputFormat("pdf")
                    .setOutputFormat("png")
                    .set("width", 300)
                    .set("height", 400),
                "export-png", new UrlExportRequest().setInput("pdf-to-png")
            )
        ).getBody();

But I get an error:

ErrorResponse(code=INVALID_DATA, message=Invalid operation for task export-png: EXPORT_URL, errors={tasks=[Invalid operation for task export-png: EXPORT_URL]})

Why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant