GithubHelp home page GithubHelp logo

Comments (4)

johnleetran avatar johnleetran commented on May 27, 2024

Could you check the AWS bucket and see if the file exists? On AWS, you must generate separate GET and PUT signed urls. Meaning PUT urls do not have GET access when used.

from photoshop-api-docs.

kratosvn avatar kratosvn commented on May 27, 2024

hi @johnleetran I checked AWS bucket but the file not existed. I use test my presign url to put image from client, it work fine.

from photoshop-api-docs.

johnleetran avatar johnleetran commented on May 27, 2024

are you still having issues or was this intermittent? for reference, below is nodejs code to generate presigned url from aws that i know works

Presigned Get URL

var AWS = require('aws-sdk')
var bucket = '<MY_BUCKET_NAME>'
var object_key = '<PATH/TO/SOME/IMAGE.psd>'
var operation =  'getObject'
var region = '<AWS_REGION>' 
AWS.config.update({"region": region});
let params = {Bucket: bucket, Key: object_key, Expires: 3600 * 24};
let s3 = new AWS.S3({apiVersion: '2006-03-01', signatureVersion: 'v4'});
s3.getSignedUrl(operation, params, function (err, url) {
	if(err){
		console.log(err)
	}else{
		console.log(url)
	}
});

Presigned PUT url

var AWS = require('aws-sdk')
var bucket = '<MY_BUCKET_NAME>'
var object_key = '<PATH/WHERE/YOU/WANT/OUTPUT.psd>'
var operation =  'putObject'
var region = '<AWS_REGION>' 
AWS.config.update({"region": region});
let params = {Bucket: bucket, Key: object_key, Expires: 3600 * 24};
let s3 = new AWS.S3({apiVersion: '2006-03-01', signatureVersion: 'v4'});
s3.getSignedUrl(operation, params, function (err, url) {
	if(err){
		console.log(err)
	}else{
		console.log(url)
	}
});

from photoshop-api-docs.

kratosvn avatar kratosvn commented on May 27, 2024

Hi @johnleetran
I'm trying to use dropbox temporary_upload_link. But when i check the job it return "Unable to upload the outputs".
Detail:
job link: https://image.adobe.io/pie/psdService/status/764e3b79-592b-4683-8d7f-d94013e99d00
response:

    "jobId": "764e3b79-592b-4683-8d7f-d94013e99d00",
    "outputs": [
        {
            "input": "https://assets.boostflow.com/phub/-------------.psd",
            "status": "failed",
            "created": "2021-08-24T16:03:38.322Z",
            "modified": "2021-08-24T16:03:43.431Z",
            "errors": {
                "code": 400,
                "details": [
                    {
                        "name": "https://content.dropboxapi.com/apitul/1/-----------",
                        "reason": "Unable to upload the outputs"
                    }
                ],
                "title": "Bad Request",
                "type": "InputValidationError"
            }
        }
    ],
    "_links": {
        "self": {
            "href": "https://image.adobe.io/pie/psdService/status/764e3b79-592b-4683-8d7f-d94013e99d00"
        }
    }
}

url from dropbox to upload output:
image

I upload to my dropbox link its work
image

can you help me check what is wrong for my request? thank you

from photoshop-api-docs.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.