Skip to main content
Participant
June 11, 2024
Question

Replace Smart Object (smartObject) API internal error when processing

  • June 11, 2024
  • 1 reply
  • 322 views

Hi, I want to replace a smart object in a layer of my PSD file with a png image the same size as the layer to be replaced. But I get an Internal Error message.

 

I make a POST to https://image.adobe.io/pie/psdService/smartObject 

with this json:

 

{
  "inputs": [
    {
      "storage": "external",
      "href": "myurlpath/7043086_522_c.psd"
    }
  ],
  "options": {
    "layers": [
      {
        "name": "SmartObject",
        "locked": true,
        "visible": true,
        "add": {
          "insertAbove": {
            "id": 0,
            "name": "string"
          },
          "insertBelow": {
            "id": 0,
            "name": "string"
          },
          "insertInto": {
            "id": 0,
            "name": "string"
          },
          "insertTop": true,
          "insertBottom": true
        },
        "input": {
          "storage": "external",
          "href": "myurlpath/Files/imagen_para_reemplazar1.jpg"
        },
        "bounds": {
          "height": 4,
          "left": 0,
          "top": 0,
          "width": 4
        }
      }
    ]
  },
  "outputs": [
    {
      "href": "https://www.dropbox.com/myoutputpath",
      "storage": "dropbox",
      "width": 0,
      "type": "image/tiff",
      "overwrite": true,
      "quality": 0,
      "compression": "small"
    }
  ]
}

 

Both files are accesible. I tryied with a wrong filename and it give me another error, so It seems the files are found. The layer to be replaced is called "SmartObject"

When looking at status API I get this error

           "errors": {
                "code": 500,
                "title": "Internal Service Error",
                "type": "InternalServiceError"
            }
Any help? 
Thanks
Gabriel
 

 

    This topic has been closed for replies.

    1 reply

    Participant
    September 9, 2024

    @Gabriel37768206qp3c I am running into this same issue and have not been able to find a solution. I believe I even got it to work once. Were you able to find a solution?