API Errors

From Ace Stream Wiki
Jump to: navigation, search

Missing paid option

Engine returns this error in the case when user needs to activate some paid option to continue playback:

You need to activate Standard or Premium plan to continue

If you receive this error from engine you should inform the user that he or she needs to activate Standard or Premium plan to continue, and redirect the user to this URL if he/she wants to proceed:

https://m.acestream.net/options/get/packageStandard

Other option is to activate paid option using Engine Service API if you're registered as a Reseller

Examples
Receiving error when using classic API:
>>START PID c894b23a65d64a0dae2076d2a01ec6bface83b01 0
<<STATE 1
<<STATUS main:starting
<<STATE 0
<<STATUS main:idle
<<STATUS main:err;0;You need to activate Standard or Premium plan to continue
Receiving error when using HTTP API:
Request:
http://127.0.0.1:6878/ace/manifest.m3u8?id=c894b23a65d64a0dae2076d2a01ec6bface83b01&format=json

Response:
{
  "response": null,
  "error": "You need to activate Standard or Premium plan to continue"
}