Skip to content

SDK doesn't support export/upload task #70

Open

Description

@anabright

Enum com.cloudconvert.dto.Operation doesn't have an instance for the export/upload task.

Even if you use your own subclass of TaskRequest, the response fails because it cannot deserialize the response:

com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `com.cloudconvert.dto.Operation` from String "export/upload": not one of the values accepted for Enum class: [archive, export/openstack, watermark, import/url, import/s3, command, thumbnail, metadata, convert, import/openstack, merge, import/sftp, export/s3, optimize, import/raw, metadata/write, import/azure-blob, export/sftp, archive/extract, import/google-cloud-storage, capture-website, import/base64, export/url, export/azure/blob, export/google-cloud-storage, import/upload]
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 1876] (through reference chain: com.cloudconvert.dto.response.JobResponse["tasks"]->java.util.ArrayList[2]->com.cloudconvert.dto.response.TaskResponse["operation"])
	at com.fasterxml.jackson.databind.exc.InvalidFormatException.from(InvalidFormatException.java:67) ~[jackson-databind-2.22.3.jar:2.22.3]
	...
	at com.cloudconvert.processor.response.successful.ContentResponseProcessor.process(ContentResponseProcessor.java:44) ~[cloudconvert-java-1.2.5.jar:na]
	at com.cloudconvert.extractor.ResultExtractor.extract(ResultExtractor.java:68) ~[cloudconvert-java-1.2.5.jar:na]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions