Getting error when using mediatailor API

0

Getting this error when accessing mediatailor API

GET https://api-mediatailor.us-west-2.amazonaws.com/playbackConfiguration/<NAME>

Error: getaddrinfo ENOTFOUND api-mediatailor.us-west-2.amazonaws.com

How to resolve this?

  • Is it possible to share the code that runs the API?
    We would like you to share all the errors you are seeing.

  • yes updated

질문됨 일 년 전423회 조회
1개 답변
0

Hello,

Looking at the error message i.e 'Error: getaddrinfo ENOTFOUND api-mediatailor.us-west-2.amazonaws.com', it is an indication for a DNS issue for resolving the endpoint of "api-mediatailor.us-west-2.amazonaws.com". Based on the shared details, I see you are making API call in order to get the playback configuration. In mediatailor, after you save the configuration you will see the MediaTailor endpoint in this format "playback-endpoint/v1/master/hashed-account-id/origin-id/assetID.m3u8 " where the Account ID is represented by a hash string. Please find the below sample URL:

https://ea7539eadsdcvfse45635675783fed.mediatailor.eu-west-1.amazonaws.com/v1/master/4a4398563b7130dc824adwfvereefere556egsvdf/confname/

You can get the same from the MediaTailor console once you save the configuration: [+] https://docs.aws.amazon.com/mediatailor/latest/ug/configurations-view.html

You can use the API's "PlaybackConfigurations"[1] to list your configurations and API "PlaybackConfiguration Name"[2] to get information about a particular configuration that will includes the endpoints URLs. Example using the AWS CLI[3][4]. Please find the referenced documents:

[1].https://docs.aws.amazon.com/mediatailor/latest/apireference/playbackconfigurations.html

[2].https://docs.aws.amazon.com/mediatailor/latest/apireference/playbackconfiguration-name.html

[3].https://aws.amazon.com/cli/

[4].https://docs.aws.amazon.com/cli/latest/reference/mediatailor/index.html#cli-aws-mediatailor

Having shared the above, to answer your question and assist you in right direction, we require details that are non-public information. Please open a support case with AWS using the following link https://console.aws.amazon.com/support/home#/case/create

AWS
지원 엔지니어
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인