Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieving Job gets a nil @output_urls #8

Open
miguelpeniche opened this issue Jun 22, 2023 · 0 comments
Open

Retrieving Job gets a nil @output_urls #8

miguelpeniche opened this issue Jun 22, 2023 · 0 comments

Comments

@miguelpeniche
Copy link

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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant