Skip to content

DASH manifest Post-Live-DVR streams - Error 500, TypeError: Invalid URL #249

@cadusilva

Description

@cadusilva

This morning I wasn't able to watch videos anymore. The poToken is generated, but the video doesn't play. Looking at the companion logs, there's this error:

    },
    videoplayback: { ump: false, video_fetch_chunk_size_mb: 5 }
  },

{
    youtube_session: { po_token_enabled: true, frequency: "*/5 * * * *" }
  },
  youtube_session: { oauth_enabled: false, cookies: "" }
}
[INFO] Using Invidious companion version 2025.12.08-8fb802c
[INFO] job po_token is active.
[INFO] Starting PO token generation in background...
[INFO] Server successfully started at http://0.0.0.0:8282/companion
[INFO] the "Not implemented: HTMLCanvasElement.prototype.getContext" error is normal. Please do not open a bug report about it.
Error: Not implemented: HTMLCanvasElement.prototype.getContext (without installing the canvas npm package)
    at module.exports (file:///tmp/deno-compile-invidious_companion/.deno_compile_node_modules/localhost/jsdom/26.1.0/lib/jsdom/browser/not-implemented.js:9:17)
    at HTMLCanvasElementImpl.getContext (file:///tmp/deno-compile-invidious_companion/.deno_compile_node_modules/localhost/jsdom/26.1.0/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js:42:5)
    at HTMLCanvasElement.getContext (file:///tmp/deno-compile-invidious_companion/.deno_compile_node_modules/localhost/jsdom/26.1.0/lib/jsdom/living/generated/HTMLCanvasElement.js:131:58)
    at eval (eval at <anonymous> (eval at <anonymous> (eval at <anonymous> (eval at <anonymous> (eval at setup (file:///tmp/deno-compile-invidious_companion/src/lib/jobs/worker.ts:193:9))))), <anonymous>:1:177)
    at K7 (eval at <anonymous> (eval at setup (file:///tmp/deno-compile-invidious_companion/src/lib/jobs/worker.ts:193:9)), <anonymous>:7279:24743)
    at b.eval [as J] (eval at <anonymous> (eval at setup (file:///tmp/deno-compile-invidious_companion/src/lib/jobs/worker.ts:193:9)), <anonymous>:7279:55219)
    at SF (eval at <anonymous> (eval at setup (file:///tmp/deno-compile-invidious_companion/src/lib/jobs/worker.ts:193:9)), <anonymous>:7279:23059)
    at vN (eval at <anonymous> (eval at setup (file:///tmp/deno-compile-invidious_companion/src/lib/jobs/worker.ts:193:9)), <anonymous>:7279:14330)
    at P (eval at <anonymous> (eval at setup (file:///tmp/deno-compile-invidious_companion/src/lib/jobs/worker.ts:193:9)), <anonymous>:7279:19706)
    at f7 (eval at <anonymous> (eval at setup (file:///tmp/deno-compile-invidious_companion/src/lib/jobs/worker.ts:193:9)), <anonymous>:7279:36548) undefined
[INFO] Searching for videos to validate PO token
[INFO] Validating PO token with video: eEWx2ooPdyQ
[WARNING] No URLs found for adaptive formats. Falling back to other YT clients.
[WARNING] Trying fallback YT client TV_SIMPLY
[INFO] Successfully validated PO token with video: eEWx2ooPdyQ
[INFO] Successfully generated PO token
<-- GET /companion/api/manifest/dash/id/tFXQD4rAUgk?local=true&unique_res=1&check=XXXXXXX
--> GET /companion/api/manifest/dash/id/tFXQD4rAUgk?local=true&unique_res=1&check=XXXXXXX 500 301ms
TypeError: Invalid URL: '/companion/videoplayback?expire=1765730886&ei=5pU-aY7TGYCbobIP3aDxgAg&ip=XXXXXXX&id=tFXQD4rAUgk.2&itag=137&aitags=XXXXXXX&source=yt_live_broadcast&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&cps=0&met=1765709286%2C&mh=Sn&mm=44%2C29&mn=sn-cgpn5oxu-wqvee%2Csn-bg0e6nll&ms=lva%2Crdu&mv=m&mvi=1&pl=20&rms=lva%2Clva&initcwndbps=1910000&ss=1&ssa=1&bui=XXXXXXX&spc=XXXXXXX&vprv=1&ufph=1&live=1&hang=1&noclen=1&svpuc=1&mime=video%2Fmp4&ns=XXXXXXX&rqh=1&gir=yes&mt=1765709083&fvip=4&keepalive=yes&fexp=XXXXXXX&c=WEB&sefc=1&n=XXXXXXX&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Css%2Cssa%2Cbui%2Cspc%2Cvprv%2Cufph%2Clive%2Chang%2Cnoclen%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir&sig=XXXXXXX%3D%3D&lsparams=cps%2Cmet%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms%2Cinitcwndbps&lsig=XXXXXXX&pot=XXXXXXX&cver=2.20250222.10.00&alr=no&cpn=&host=rr1---sn-cgpn5oxu-wqvee.googlevideo.com&rn=0&sq=0'
    at getSerialization (ext:deno_url/00_url.js:98:11)
    at new URL (ext:deno_url/00_url.js:405:27)
    at new Request (ext:deno_fetch/23_request.js:344:25)
    at ext:deno_fetch/26_fetch.js:374:29
    at new Promise (<anonymous>)
    at fetch (ext:deno_fetch/26_fetch.js:370:20)
    at callFetch (file:///tmp/deno-compile-invidious_companion/src/lib/helpers/getFetchClient.ts:78:9)
    at fetchShim (file:///tmp/deno-compile-invidious_companion/src/lib/helpers/getFetchClient.ts:86:58)
    at HTTPClient.<anonymous> (file:///tmp/deno-compile-invidious_companion/src/lib/helpers/getFetchClient.ts:55:9)
    at getPostLiveDvrInfo (https://cdn.jsdelivr.net/gh/LuanRT/YouTube.js@v16.0.0-deno/deno/src/utils/StreamingInfo.ts:278:47)
<-- GET /companion/api/manifest/dash/id/tFXQD4rAUgk?local=true&unique_res=1&check=XXXXXXX
TypeError: Invalid URL: '/companion/videoplayback?expire=1765730886&ei=5pU-aY7TGYCbobIP3aDxgAg&ip=XXXXXXX&id=tFXQD4rAUgk.2&itag=137&aitags=XXXXXXX&source=yt_live_broadcast&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&cps=0&met=1765709286%2C&mh=Sn&mm=44%2C29&mn=sn-cgpn5oxu-wqvee%2Csn-bg0e6nll&ms=lva%2Crdu&mv=m&mvi=1&pl=20&rms=lva%2Clva&initcwndbps=1910000&ss=1&ssa=1&bui=XXXXXXX&spc=XXXXXXX&vprv=1&ufph=1&live=1&hang=1&noclen=1&svpuc=1&mime=video%2Fmp4&ns=XXXXXXX&rqh=1&gir=yes&mt=1765709083&fvip=4&keepalive=yes&fexp=XXXXXXX&c=WEB&sefc=1&n=XXXXXXX&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Css%2Cssa%2Cbui%2Cspc%2Cvprv%2Cufph%2Clive%2Chang%2Cnoclen%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir&sig=XXXXXXX%3D%3D&lsparams=cps%2Cmet%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms%2Cinitcwndbps&lsig=XXXXXXX&pot=XXXXXXX&cver=2.20250222.10.00&alr=no&cpn=&host=rr1---sn-cgpn5oxu-wqvee.googlevideo.com&rn=0&sq=0'
    at getSerialization (ext:deno_url/00_url.js:98:11)
    at new URL (ext:deno_url/00_url.js:405:27)
    at new Request (ext:deno_fetch/23_request.js:344:25)
    at ext:deno_fetch/26_fetch.js:374:29
    at new Promise (<anonymous>)
    at fetch (ext:deno_fetch/26_fetch.js:370:20)
    at callFetch (file:///tmp/deno-compile-invidious_companion/src/lib/helpers/getFetchClient.ts:78:9)
    at fetchShim (file:///tmp/deno-compile-invidious_companion/src/lib/helpers/getFetchClient.ts:86:58)
    at HTTPClient.<anonymous> (file:///tmp/deno-compile-invidious_companion/src/lib/helpers/getFetchClient.ts:55:9)
    at getPostLiveDvrInfo (https://cdn.jsdelivr.net/gh/LuanRT/YouTube.js@v16.0.0-deno/deno/src/utils/StreamingInfo.ts:278:47)
--> GET /companion/api/manifest/dash/id/tFXQD4rAUgk?local=true&unique_res=1&check=XXXXXXX 500 4ms
[INFO] the "Not implemented: HTMLCanvasElement.prototype.getContext" error is normal. Please do not open a bug report about it.
Error: Not implemented: HTMLCanvasElement.prototype.getContext (without installing the canvas npm package)
    at module.exports (file:///tmp/deno-compile-invidious_companion/.deno_compile_node_modules/localhost/jsdom/26.1.0/lib/jsdom/browser/not-implemented.js:9:17)
    at HTMLCanvasElementImpl.getContext (file:///tmp/deno-compile-invidious_companion/.deno_compile_node_modules/localhost/jsdom/26.1.0/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js:42:5)
    at HTMLCanvasElement.getContext (file:///tmp/deno-compile-invidious_companion/.deno_compile_node_modules/localhost/jsdom/26.1.0/lib/jsdom/living/generated/HTMLCanvasElement.js:131:58)
    at eval (eval at <anonymous> (eval at <anonymous> (eval at <anonymous> (eval at <anonymous> (eval at setup (file:///tmp/deno-compile-invidious_companion/src/lib/jobs/worker.ts:193:9))))), <anonymous>:1:177)
    at K7 (eval at <anonymous> (eval at setup (file:///tmp/deno-compile-invidious_companion/src/lib/jobs/worker.ts:193:9)), <anonymous>:3086:24743)
    at b.eval [as J] (eval at <anonymous> (eval at setup (file:///tmp/deno-compile-invidious_companion/src/lib/jobs/worker.ts:193:9)), <anonymous>:3086:55219)
    at SF (eval at <anonymous> (eval at setup (file:///tmp/deno-compile-invidious_companion/src/lib/jobs/worker.ts:193:9)), <anonymous>:3086:23059)
    at vN (eval at <anonymous> (eval at setup (file:///tmp/deno-compile-invidious_companion/src/lib/jobs/worker.ts:193:9)), <anonymous>:3086:14330)
    at P (eval at <anonymous> (eval at setup (file:///tmp/deno-compile-invidious_companion/src/lib/jobs/worker.ts:193:9)), <anonymous>:3086:19706)
    at f7 (eval at <anonymous> (eval at setup (file:///tmp/deno-compile-invidious_companion/src/lib/jobs/worker.ts:193:9)), <anonymous>:3086:36548) undefined
[INFO] Searching for videos to validate PO token
[INFO] Validating PO token with video: s91nX9Kd9UY
[WARNING] No URLs found for adaptive formats. Falling back to other YT clients.
[WARNING] Trying fallback YT client TV_SIMPLY
[INFO] Successfully validated PO token with video: s91nX9Kd9UY
[INFO] Successfully generated PO token
<-- GET /companion/api/manifest/dash/id/tFXQD4rAUgk?local=true&unique_res=1&check=XXXXXXX
TypeError: Invalid URL: '/companion/videoplayback?expire=1765730886&ei=5pU-aY7TGYCbobIP3aDxgAg&ip=XXXXXXX&id=tFXQD4rAUgk.2&itag=137&aitags=XXXXXXX&source=yt_live_broadcast&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&cps=0&met=1765709286%2C&mh=Sn&mm=44%2C29&mn=sn-cgpn5oxu-wqvee%2Csn-bg0e6nll&ms=lva%2Crdu&mv=m&mvi=1&pl=20&rms=lva%2Clva&initcwndbps=1910000&ss=1&ssa=1&bui=XXXXXXX&spc=XXXXXXX&vprv=1&ufph=1&live=1&hang=1&noclen=1&svpuc=1&mime=video%2Fmp4&ns=XXXXXXX&rqh=1&gir=yes&mt=1765709083&fvip=4&keepalive=yes&fexp=XXXXXXX&c=WEB&sefc=1&n=XXXXXXX&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Css%2Cssa%2Cbui%2Cspc%2Cvprv%2Cufph%2Clive%2Chang%2Cnoclen%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir&sig=XXXXXXX%3D%3D&lsparams=cps%2Cmet%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms%2Cinitcwndbps&lsig=XXXXXXX&pot=XXXXXXX&cver=2.20250222.10.00&alr=no&cpn=&host=rr1---sn-cgpn5oxu-wqvee.googlevideo.com&rn=0&sq=0'
    at getSerialization (ext:deno_url/00_url.js:98:11)
    at new URL (ext:deno_url/00_url.js:405:27)
    at new Request (ext:deno_fetch/23_request.js:344:25)
    at ext:deno_fetch/26_fetch.js:374:29
    at new Promise (<anonymous>)
    at fetch (ext:deno_fetch/26_fetch.js:370:20)
    at callFetch (file:///tmp/deno-compile-invidious_companion/src/lib/helpers/getFetchClient.ts:78:9)
    at fetchShim (file:///tmp/deno-compile-invidious_companion/src/lib/helpers/getFetchClient.ts:86:58)
    at HTTPClient.<anonymous> (file:///tmp/deno-compile-invidious_companion/src/lib/helpers/getFetchClient.ts:55:9)
    at getPostLiveDvrInfo (https://cdn.jsdelivr.net/gh/LuanRT/YouTube.js@v16.0.0-deno/deno/src/utils/StreamingInfo.ts:278:47)
--> GET /companion/api/manifest/dash/id/tFXQD4rAUgk?local=true&unique_res=1&check=XXXXXXX 500 2ms
<-- GET /companion/api/manifest/dash/id/tFXQD4rAUgk?local=true&unique_res=1&check=XXXXXXX
TypeError: Invalid URL: '/companion/videoplayback?expire=1765730886&ei=5pU-aY7TGYCbobIP3aDxgAg&ip=XXXXXXX&id=tFXQD4rAUgk.2&itag=137&aitags=XXXXXXX&source=yt_live_broadcast&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&cps=0&met=1765709286%2C&mh=Sn&mm=44%2C29&mn=sn-cgpn5oxu-wqvee%2Csn-bg0e6nll&ms=lva%2Crdu&mv=m&mvi=1&pl=20&rms=lva%2Clva&initcwndbps=1910000&ss=1&ssa=1&bui=XXXXXXX&spc=XXXXXXX&vprv=1&ufph=1&live=1&hang=1&noclen=1&svpuc=1&mime=video%2Fmp4&ns=XXXXXXX&rqh=1&gir=yes&mt=1765709083&fvip=4&keepalive=yes&fexp=XXXXXXX&c=WEB&sefc=1&n=XXXXXXX&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Css%2Cssa%2Cbui%2Cspc%2Cvprv%2Cufph%2Clive%2Chang%2Cnoclen%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir&sig=XXXXXXX%3D%3D&lsparams=cps%2Cmet%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms%2Cinitcwndbps&lsig=XXXXXXX&pot=XXXXXXX&cver=2.20250222.10.00&alr=no&cpn=&host=rr1---sn-cgpn5oxu-wqvee.googlevideo.com&rn=0&sq=0'
    at getSerialization (ext:deno_url/00_url.js:98:11)
    at new URL (ext:deno_url/00_url.js:405:27)
    at new Request (ext:deno_fetch/23_request.js:344:25)
    at ext:deno_fetch/26_fetch.js:374:29
    at new Promise (<anonymous>)
    at fetch (ext:deno_fetch/26_fetch.js:370:20)
    at callFetch (file:///tmp/deno-compile-invidious_companion/src/lib/helpers/getFetchClient.ts:78:9)
    at fetchShim (file:///tmp/deno-compile-invidious_companion/src/lib/helpers/getFetchClient.ts:86:58)
    at HTTPClient.<anonymous> (file:///tmp/deno-compile-invidious_companion/src/lib/helpers/getFetchClient.ts:55:9)
    at getPostLiveDvrInfo (https://cdn.jsdelivr.net/gh/LuanRT/YouTube.js@v16.0.0-deno/deno/src/utils/StreamingInfo.ts:278:47)
--> GET /companion/api/manifest/dash/id/tFXQD4rAUgk?local=true&unique_res=1&check=XXXXXXX 500 2ms

This also seems to have broken yewtu.be and inv.nadeko.net.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions