简体   繁体   English

从系统上载文件到Azure Media Service中的流时作业失败

[英]Job fail when uploading file from system to stream in Azure Media Service

I'm trying to set a VOD service on Azure media service using node.js, but job fails to reach file from container. 我正在尝试使用node.js在Azure媒体服务上设置VOD服务,但是作业无法从容器访问文件。

This is for a Linux server running node v10. 这适用于运行节点v10的Linux服务器。 The Azure tutorial for node works for sample URL, but not for a file from the system. 用于节点的Azure教程适用于示例URL,但不适用于系统中的文件。 The file gets stored in a input blob container but don't go past that. 该文件存储在输入Blob容器中,但不要超出该范围。

When running the AMS tutorial, without a change, for node to get the streaming endpoints for a sample video from a URL from the tutorial I got the endpoints for stream, but when trying to upload a file from my system to the Azure media service, the file gets uploaded to a blob container, but the job apparently fails to find the video in the input asset container and returns a ErrorDownloadingInputAssetServiceFailure error, with message that says that : 运行AMS教程时,无需进行任何更改,就可以使节点从教程中的URL获取示例视频的流式传输端点,但我却获得了流式传输的端点,但是当尝试将文件从系统上载到Azure媒体服务时,该文件被上传到Blob容器,但该工作显然无法在输入资产容器中找到视频,并返回ErrorDownloadingInputAssetServiceFailure错误,并显示以下消息:

File does not exist in the container: 2019-09-05T05:36:10.775Z-big_buck_bunny_480p_2mb.mp431 \\nContainer files: 10.775Z-big_buck_bunny_480p_2mb.mp431 容器中不存在文件:2019-09-05T05:36:10.775Z-big_buck_bunny_480p_2mb.mp431 \\ n容器文件:10.775Z-big_buck_bunny_480p_2mb.mp431

I don't know where I'm getting this wrong, but from the message seems that the job is trying to find the file in a blob container that don't exists. 我不知道我在哪里弄错了,但是从消息看来,该工作正在尝试在不存在的Blob容器中查找文件。

EDIT: Tutorial link: https://docs.microsoft.com/en-us/azure/media-services/latest/stream-files-nodejs-quickstart Tutorial GitHub: https://github.com/Azure-Samples/media-services-v3-node-tutorials.git My GitHub for this code: https://github.com/DiegoAntonioli/azure-test.git 编辑:教程链接: https : //docs.microsoft.com/zh-cn/azure/media-services/latest/stream-files-nodejs-quickstart教程GitHub: https : //github.com/Azure-Samples/media -services-v3-node-tutorials.git此代码的我的GitHub: https : //github.com/DiegoAntonioli/azure-test.git

I'm using multer as a middleware to get the files, so i'm saving the files in the system through multer and uploading to a blob container on azure. 我使用multer作为获取文件的中间件,因此我通过multer将文件保存在系统中,并上传到Azure上的Blob容器。 The file in the input asset blob container gets saved with the name i'm looking for "2019-09-05T05:36:10.775Z-big_buck_bunny_480p_2mb.mp431", and not the name that says in the error message "10.775Z-big_buck_bunny_480p_2mb.mp431". 输入资产Blob容器中的文件保存为我正在寻找的名称“ 2019-09-05T05:36:10.775Z-big_buck_bunny_480p_2mb.mp431”,而不是错误消息中的名称“ 10.775Z-big_buck_bunny_480p_2mb” .mp431”。

EDIT 2: Problem solved, seems that the azure searches for files in the blob container without the ":" character, so when i was uploading with a isosstring date in the start they looked for the file with the name only after the last ":" character, so it would never find the file. 编辑2:问题已解决,似乎azure在blob容器中搜索不带“:”字符的文件,因此当我在开始时以等腰线日期上传文件时,他们只在最后一个“”之后查找名称为该文件的文件:字符,因此它将永远找不到文件。 I don't know if it is in the documentation, but if it is they should make it clearer, because i was lost looking for my error and it was only the file name. 我不知道它是否在文档中,但是如果它应该使它们更清晰,因为我迷失了寻找错误的地方,而这仅仅是文件名。

The root cause is that the blob/file name had an unsupported character ':'. 根本原因是Blob /文件名包含不受支持的字符“:”。 See this page for the restrictions on allowed names. 有关允许的名称的限制,请参见此页面。 However, your post did reveal a bug in how we were unpacking the error message - that bug has been handed off to engineering to fix in an upcoming sprint. 但是,您的帖子确实揭示了我们如何整理错误消息的错误-该错误已移交给工程人员以修复即将到来的sprint。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 NodeJS '@azure/storage-blob':上传文件时如何设置 Blob 服务属性 - NodeJS '@azure/storage-blob': How do set Blob Service Properties when uploading a file 使用mongoose,gridfs-stream和multer上传文件时出现MongoError - MongoError when uploading a file using mongoose, gridfs-stream and multer 从Parse将媒体上传到AWS - Uploading media to AWS from Parse 将大文件上传到EB AWS服务失败,错误400错误请求 - Uploading large file to EB AWS service fail with error 400 bad request Azure媒体服务作业状态Webhook通知 - Azure Media Services Job status webhook notifications 使用trigger.io/forge将文件从heroku上传到外部服务 - Uploading file from heroku to external service with trigger.io/forge 天蓝色应用服务上的角度应用 - 从资源文件夹加载配置文件时出现404错误 - Angular app on azure app service - 404 errors when loading config file from assets folder 从AWS Lambda NodeJs应用程序流式传输到文件系统? - Stream to file system from AWS Lambda NodeJs application? 上传文件时出现“错误:MultipartParser.end(): stream 意外结束”错误 - “Error: MultipartParser.end(): stream ended unexpectedly” error when uploading a file 作为响应发送数据流-node.js-使用node.js的Azure File服务 - Sending stream of data in response - node.js - Azure File service using node.js
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM