inlife / nexrender

📹 Data-driven render automation for After Effects
https://www.nexrender.com
MIT License
1.62k stars 326 forks source link

Bad error logging if asset could not be downloaded #1002

Closed schubc closed 2 months ago

schubc commented 3 months ago

Describe the bug If an asset can not be downloaded, only the string [object Object] is sent as error text

Information about environment

If an asset cannot be downloaded, it should be logged to nexrender-server. Currently only [object Object] is logged.

example: \ image2.jpg returned a 404 error

[
  {
    "uid": "deadbeef",
    "type": "default",
    "state": "error",
    "output": "",
    "tags": null,
    "priority": 0,
    "template": {
      "src": "https://example.com/scene.aep",
      "composition": "myComposition",
      "outputModule": "My-Output-Module",
      "outputExt": "mp4",
      "settingsTemplate": "My-Settings-Template"
    },
    "assets": [
      {
        "src": "https://example.com/assets.zip",
        "type": "static"
      },
      {
        "src": "https://example.com/image1.jpg",
        "composition": "myComposition",
        "layerName": "myLayer1",
        "type": "image",
        "dest": ""
      },
      {
        "src": "https://example.com/image2.jpg",
        "composition": "myComposition",
        "layerName": "myLayer2",
        "type": "image",
        "dest": ""
      }
    ],
    "error": "[object Object]"
  }
]

I changed the Error handling in #1001