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

gefragt vor einem Jahr424 Aufrufe
1 Antwort
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
SUPPORT-TECHNIKER
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen