Device : Kepler Fire TV stick (Vega OS)
We implemented TIF guide, to serve the data into TIF when app is not launched or in background for log hours, as per guidance we are trying to implement Epg-sync-scheduler : Ref-Link.
We have created a headless service to invoke EpgSyncScheduler() β when we try to register the scheduler we are receiving status code -8
Logs for your reference
Dec 10 21:58:24.844851 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] π₯π₯π₯ SERVICE.JS IS LOADING - BEFORE IMPORTS π₯π₯π₯
Dec 10 21:58:24.844978 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] π₯π₯π₯ SERVICE.JS IMPORTS SUCCESSFUL π₯π₯π₯
Dec 10 21:58:24.845227 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] SERVICE.JS: REGISTERING TIF HEADLESS ENTRY POINTS
Dec 10 21:58:24.845503 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] service.js: TIF functions imported
Dec 10 21:58:24.845630 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] β
service.js: onStartService registered
Dec 10 21:58:24.845756 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] β
service.js: onStopService registered
Dec 10 21:58:27.505548 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] service.js: Triggering TIF service in background
Dec 10 21:58:27.507461 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] service.js: TIF service trigger initiated, continuing...
Dec 10 21:58:27.599298 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] [INFO] 2025-12-10T21:58:27.597Z - Calling EpgSyncTaskScheduler.scheduleTask()...
Dec 10 21:58:27.615594 ERROR ktf.tm.nests: Error thrown when triggering task for component Id: onStartService, error: []: Error when submitting task, status: -8
Dec 10 21:58:27.637679 ERROR com.amazon.keplerscript: [KeplerScript-JavaScript] '[ERROR] 2025-12-10T21:58:27.636Z - Failed to schedule with interval:', [Error: Schedule task failed due to internal error]
Dec 10 21:58:27.638678 WARNING Volta:console.error: [ERROR] 2025-12-10T21:58:27.636Z - Failed to schedule with interval: Error: Schedule task failed due to internal error
Dec 10 21:58:27.639577 ERROR com.amazon.keplerscript: [KeplerScript-JavaScript] '[ERROR] 2025-12-10T21:58:27.638Z - Error details:', { message: 'Schedule task failed due to internal error',
Dec 10 21:58:27.647322 WARNING Volta:console.error: [ERROR] 2025-12-10T21:58:27.638Z - Error details: {"message":"Schedule task failed due to internal error","type":"InternalError"}
Dec 10 21:58:27.652954 ERROR com.amazon.keplerscript: [KeplerScript-JavaScript] '[ERROR] 2025-12-10T21:58:27.650Z - Error:', [Error: Schedule task failed due to internal error]
Dec 10 21:58:27.653262 WARNING Volta:console.error: [ERROR] 2025-12-10T21:58:27.650Z - Error: Error: Schedule task failed due to internal error
Dec 10 21:58:27.656568 ERROR com.amazon.keplerscript: [KeplerScript-JavaScript] '[ERROR] 2025-12-10T21:58:27.655Z - Error Message:', 'Schedule task failed due to internal error'
Dec 10 21:58:27.657614 WARNING Volta:console.error: [ERROR] 2025-12-10T21:58:27.655Z - Error Message: Schedule task failed due to internal error
Dec 10 21:58:27.658409 ERROR com.amazon.keplerscript: [KeplerScript-JavaScript] '[ERROR] 2025-12-10T21:58:27.657Z - Error Stack:', 'Error: Schedule task failed due to internal error\n at construct (native)\n at apply (native)\n at _construct (bundle:7055:106)\n at Wrapper (bundle:7029:64)\n at construct (native)\n at _callSuper (bundle:132741:254)\n at InternalError (bundle:132753:24)\n at anonymous (bundle:132997:81)\n at tryCallOne (InternalBytecode.js:53:16)\n at anonymous (InternalBytecode.js:139:27)'
Dec 10 21:58:27.674344 ERROR com.amazon.keplerscript: [KeplerScript-JavaScript] '[ERROR] 2025-12-10T21:58:27.673Z - Error message:', 'Schedule task failed due to internal error'
Dec 10 21:58:27.676616 WARNING Volta:console.error: [ERROR] 2025-12-10T21:58:27.673Z - Error message: Schedule task failed due to internal error
Dec 10 21:58:27.678860 ERROR com.amazon.keplerscript: [KeplerScript-JavaScript] '[ERROR] 2025-12-10T21:58:27.676Z - Error stack:', 'Error: Schedule task failed due to internal error\n at construct (native)\n at apply (native)\n at _construct (bundle:7055:106)\n at Wrapper (bundle:7029:64)\n at construct (native)\n at _callSuper (bundle:132741:254)\n at InternalError (bundle:132753:24)\n at anonymous (bundle:132997:81)\n at tryCallOne (InternalBytecode.js:53:16)\n at anonymous (InternalBytecode.js:139:27)'
I have also registered the scheduler entry point in manifest.toml
#
# HEADLESS ENTRY POINTS - Required for background task execution
#
[[offers.headless-entry-point]]
id = "onStartService"
uses-component = "TIFHeadlessService"
[[offers.headless-entry-point]]
id = "onStopService"
uses-component = "TIFHeadlessService"
Let me know If I have missed any configurations? also if u need more logs for understanding guide me on accessing them for our debugging.

