Skip to content

Troubleshooting

Find the problem in the tables below. Each row gives the cause and the action. For the full lists of codes, see the Content API reference and the Billing API reference.

How to read an error

Interface Error format
Content API Most errors: HTTP 200 with "result": "error" and code. A wrong signature: HTTP 400
Content API, /stream The user cannot watch: HTTP 200, "result": "ok", empty src and restrictions
Billing API HTTP 200 with "successful": false and the code at the end of message
Billing API, access HTTP 401 with a plain text, not JSON

Do not use only the HTTP status. Always read the body.

Requests and signatures

Problem Cause Action
HTTP 400, "You entered wrong sign key" The signature is not correct Use the parameters in the URL order. Use the decoded values. Include access_token, page and lang. See Sign a request
HTTP 406 with an empty body The path is not correct Make sure that the URL starts with https://api.megogo.net/v1/
"code": 400 A parameter is not correct or not in the request Read the reference of the request
"code": 404 The video is not found Remove the video from your catalog
HTTP 429 More than 1000 requests per minute for the key Send fewer requests. Use a cache. See Operations
The text is in Russian lang is not in the request Send lang in each request

Authorization

Problem Cause Action
"The entered login or password is incorrect" The token is not correct Calculate md5(user_id + partner_id + salt) again. Use the same user identifier as in the Billing API
"code": 403 The access token is not correct or expired Get a new token with /auth/refresh or /auth/by_partners
/auth/refresh gives "code": 400 The remember-me token is not correct, or the parameter name is remember_me_token Use the name rememberme_token. Or do the authorization again

Playback

restrictions[].code or problem Cause Action
NOT_PURCHASABLE The user has no subscription or purchase for this video, or access_token is not in the request Offer a subscription or a purchase. Check the services with user/subscriptions
CONTRACT, NO_CONTRACT The video is not in your contract Do not show the video
NO_VOD_COUNTRY, NOT_ENABLED_IN_COUNTRY The video is not available in the country of the user Tell the user. Do not show the video in this country
NO_BITRATE No quality is available for your key, for example a 4K version without the 4K setting Do not show 4K versions without the 4K setting
NO_DRM_SUPPORT, DRM The video has DRM, but your key does not support it (from the documentation) Ask your MEGOGO manager about DRM
The player cannot play src The protocol or the DRM system is not supported by the player Check stream_type and drm_type. Ask MEGOGO to change the settings of the key
HTTP 404 for the manifest after a change of the audio track The index is not from audio_tracks Use only the index values of the response
More audio tracks in the player than in audio_tracks The manifest has tracks that are not for your key Hide them. Match by lang_tag
audio_tracks is empty or does not contain a track of the video The video has only 5.1 tracks or tracks that require subtitles, and your key does not allow them Do not show the video, or ask your MEGOGO manager
A rented video plays fewer days than expected The rent period started at the first /stream Send /stream only when the user starts the playback

Billing

Code or problem Cause Action
HTTP 401, Partner … not found The IP address is not in the list, or the partner ID is not correct Send the request from a server in the list. A new address works some minutes after the change
2023 The service is already active No action is necessary
2027 The end date would be more than 5 years from now Do not renew now
400 The user already bought this video No action is necessary
40416 The service ID or the tariff ID is not correct for your partner Use the service IDs from MEGOGO and tariff_id from /video/info
5001 The user is not found Make sure that the user identifier is correct
2009, 2010, 2012, 2013, 2015, 2016, 2017, 2022, 2029, 2031, 4003 A setting of the service, the tariff or the video is not correct (from the documentation) Tell MEGOGO support. Give the time of the request and the code
Timeout, HTTP 5xx Temporary problem Check user/subscriptions, then send the request again. Wait 1 minute, maximum 6 attempts

XML feed

Problem Cause Action
The generation time in the first comment is not today The new feed is not ready Keep the previous catalog. Download the feed again later. The feed is ready after 05:00 UTC
HTTP 404 The URL is not correct Use the URL that MEGOGO gave you
An object is in the feed, but /stream gives a restriction The object needs a setting that your key does not have (DRM, 4K) or a platform flag is 0 Use the filters of Build and update the catalog
The prices in the feed are not the prices of your offers The feed has MEGOGO tariffs Use the prices from /video/info

Contact

Send the problem to MEGOGO support: supportpartners@megogo.net. Write your partner ID, the request (without keys and tokens), the response and the time (UTC).