cloudconvert / cloudconvert-java

Official CloudConvert Java SDK
37 stars 20 forks source link

Getting Unauthorized even though environment variables are set #39

Closed eszterbordi closed 3 years ago

eszterbordi commented 3 years ago
Screenshot 2021-09-29 at 11 25 40

Result<JobResponse> result = client.jobs().create( ImmutableMap.of( "upload", new S3ImportRequest() .setBucket(exportDestination) .setKey(tmpFile.getName()) .setEndpoint(s3Endpoint) .setSecretAccessKey(credentials.getAWSSecretKey()) .setAccessKeyId(credentials.getAWSAccessKeyId()), "convert", new ConvertFilesTaskRequest() .setEngine("inkscape") .setInput("upload") .setInputFormat("svg") .setOutputFormat("dxf") .setFilename(tmpFile.getName()), "export-result", new S3ExportRequest() .setBucket(exportDestination) .setKey(tmpFile.getName()) .setEndpoint(s3Endpoint) .setSecretAccessKey(credentials.getAWSSecretKey()) .setAccessKeyId(credentials.getAWSAccessKeyId()) ) );

Screenshot 2021-09-29 at 11 25 27

Why?

josiasmontag commented 3 years ago

This is not a valid API key.

This is the issue tracker for the Java SDK. Please do not use the issue tracker for support requests. Thanks.