Getting error when using mediatailor API


Getting this error when accessing mediatailor API


Error: getaddrinfo ENOTFOUND

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

asked a year ago407 views
1 Answer


Looking at the error message i.e 'Error: getaddrinfo ENOTFOUND', it is an indication for a DNS issue for resolving the endpoint of "". 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:

You can get the same from the MediaTailor console once you save the configuration: [+]

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:





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

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions