Skip to content

Retrieving Job gets a nil @output_urls #8

@miguelpeniche

Description

@miguelpeniche

When using Coconut::Job.retrieve("nRs0nN734KS18M") I am getting nil in output_urls reponse:

#<Coconut::Job:0x0000000115bef238
 @completed_at="2023-06-22 19:57:59 +0000",
 @created_at="2023-06-22 19:53:10 +0000",
 @errors=nil,
 @id="nRs0nN734KS18M",
 @output_urls=nil,
 @progress="100%",
 @status="job.completed">

Which is weird cause when I do a curl https://api.coconut.co/v2/jobs/nRs0nN734KS18M -u (api_key), it returns the full json with all the outputs like:

{
  "completed_at": "2023-06-22 19:57:59 +0000",
  "created_at": "2023-06-22 19:53:10 +0000",
  "id": "nRs0nN734KS18M",
  "input": {
    "status": "input.transferred"
  },
  "outputs": [
    {
      "format": "mp4:240p",
      "key": "mp4:240p",
      "status": "video.encoded",
      "type": "video",
      "url": "http://somepage.com/240p.mp4"
    },
    {
      "format": "mp4:360p",
      "key": "mp4:360p",
      "status": "video.encoded",
      "type": "video",
      "url": "http://somepage.com/360p.mp4"
    },
    {
      "format": "mp4:480p",
      "key": "mp4:480p",
      "status": "video.encoded",
      "type": "video",
      "url": "http://somepage.com/480p.mp4"
    }
  ],
  "progress": "100%",
  "status": "job.completed"
}

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