`Video.Assets.create` doesn't just return asset anymore
See original GitHub issueI 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:
- Created 2 years ago
- Comments:11
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 in0.21.3
. The regression is that our response interceptor was not getting registered. I was able to replicate this and then confirm that0.21.3
and later do not have the issueI’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-nodeThank you!