question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`Video.Assets.create` doesn't just return asset anymore

See original GitHub issue

I have the following code:

const asset = await Video.Assets.create({
  input: videoUrl,
  playback_policy: 'public',
})
console.info(asset)

While the type definition clearly indicates that Video.Assets.create would resolve to an asset object that looks like this:

{
  "status": "preparing",
  "playback_ids": [
    {
      "policy": "public",
      "id": "OHWwY9L00OoSNAQ7MrtDH00Gal4S01z7wyeszVLIThmbh00"
    }
  ],
  "mp4_support": "none",
  "master_access": "none",
  "id": "H4I300fePrcZs6lJ009m2vyeiLtojQ7u7FESR3CRf3tZY",
  "created_at": "1632108478"
}

Now it resolves to an object that looks like a HTTP response:

{
  "status": 201,
  "statusText": "Created",
  "headers": {
    ...
  },
  "config": {
    ...
  },
  "request": {
    ...
  },
  "data": {
    "data": {
      "status": "preparing",
      "playback_ids": [
        {
          "policy": "public",
          "id": "OHWwY9L00OoSNAQ7MrtDH00Gal4S01z7wyeszVLIThmbh00"
        }
      ],
      "mp4_support": "none",
      "master_access": "none",
      "id": "H4I300fePrcZs6lJ009m2vyeiLtojQ7u7FESR3CRf3tZY",
      "created_at": "1632108478"
    }
  }
}

I’m using @mux/mux-node v3.2.3.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
dylanjhacommented, Sep 20, 2021

Okay - so those issues were not relevant^… but I did get to the bottom of it

The issue is specific to axios 0.21.2 because [there was a regression in that version]. The regression was quickly patched it in 0.21.3. The regression is that our response interceptor was not getting registered. I was able to replicate this and then confirm that 0.21.3 and later do not have the issue

I’m going to go ahead and update our dep from ^0.21.1 to the latest ^0.21.4 and cut a new patch version of mux-node

0reactions
hellovietduccommented, Sep 21, 2021

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add video assets and set up serving files - Google Support
Under Creative assets in your in-stream video creative, click Add asset and select your video file. The maximum size allowed is 1 GB....
Read more >
System.NotSupportedException when trying to create an asset
Data contains the byte[] of the video. The exception is thrown when CreateAsync is called. I tried _context.Assets.Create with no luck.
Read more >
The Benefits of Digital Asset Management for Video | MediaValet
Here are six key benefits to implementing a digital asset management solution to manage your raw, final and archived video footage.
Read more >
Why just the traditional 60/40 investment portfolio won ... - CNBC
Looking for opportunities for gains will likely push financial advisors to think differently about traditional 60% stocks/40% bonds portfolio ...
Read more >
Manage video assets - Experience League - Adobe
Learn how to upload, preview, annotate, and publish video assets. ... the asset is not MP4, install the FFmpeg pack to generate a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found