TeamPiped / Piped

An alternative privacy-friendly YouTube frontend which is efficient by design.
https://piped.video
GNU Affero General Public License v3.0
8.43k stars 694 forks source link

Error 1001, 1002 and 1003 #2915

Open DanielProg39 opened 1 year ago

DanielProg39 commented 1 year ago

Official Instance

Describe the bug

I opened this video and got a message saying: "Failed with error code 1001, see logs for more info". Other videos play properly without any issues.

To Reproduce

  1. Open this video.
  2. Observe an error.

Expected behavior

Video should play like any other.

Logs/Errors

Found this in logs:

Error: Shaka Error
    at new x (https://piped.video/assets/shaka-player.ui-92211a3f.js:1:22884)
    at nm (https://piped.video/assets/shaka-player.ui-92211a3f.js:1:389839)
    at Vy.h (https://piped.video/assets/shaka-player.ui-92211a3f.js:1:391259)
    at Cr (https://piped.video/assets/shaka-player.ui-92211a3f.js:1:4167)
    at Hy.next (https://piped.video/assets/shaka-player.ui-92211a3f.js:1:4465)
    at t (https://piped.video/assets/shaka-player.ui-92211a3f.js:1:4694)

Can provide more logs if required

Browser, and OS with Version.

Brave 1.57.62 on Chromium 116.0.5845.180

Additional context

No response

tonytonyistony commented 8 months ago

In my brief testing, disabling UMP seems to fix it. I did a quick hack to fix it without recompiling anything by rewriting the URI in Caddy.

pipedproxy.domain.tld {
        uri replace "&ump=1" ""
        reverse_proxy http://127.0.0.1:8080
}

It should be possible to do in nginx too.

I don't know what possible negative effects this could have. I also don't know what UMP is.

Did the fix above not help you?

AlyoshaVasilieva commented 8 months ago

Did the fix above not help you?

When I was trying to figure out the issue, nginx wasn't receiving a full response from upstream. I was getting "upstream prematurely closed connection while reading upstream". So I don't think that would have fixed it, since it's telling nginx to cache responses. Haven't tested it, though.

edit: Also, while I failed, I was trying to find the underlying issue, which I'm pretty sure isn't "not enough caching". When performing the same request directly to YouTube it was working fine, near-instant, and <1KB.

lewxdev commented 8 months ago

For the record, I'm getting a 1003 error for this video, curious if it's reproducible and if adding this context might lead to more insights

{
    "severity": 2,
    "category": 1,
    "code": 1003,
    "data": [
        "https://pipedproxy-yyz.kavin.rocks/videoplayback?beids=24350306&c=ANDROID&clen=148366496&cpn=GPBkM9YJMCOns03P&dur=912.703&ei=Q4LoZciXAeeilu8PgO2e4A8&expire=1709758115&fexp=24007246&fvip=5&gir=yes&host=rr1---sn-p5qlsndr.googlevideo.com&id=o-AJPdFVRiBQaUjzkyP3QUcNTA9L_2l8AFtahXnts0Eqvb&initcwndbps=2092500&ip=179.61.197.168&itag=137&keepalive=yes&lmt=1707987052711816&lsig=APTiJQcwRgIhALnblw6BYkPIHCWq2Z2Qiic8Z70EkM_NXB1oUEuwAWxRAiEA6zxFB8FTrkZpdiHT3ZBQlqzR7C5nYv7c1OADQFAzrsE%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=aK&mime=video%2Fmp4&mm=31%2C26&mn=sn-p5qlsndr%2Csn-vgqsrn6l&ms=au%2Conr&mt=1709735600&mv=m&mvi=1&pl=24&qhash=49660310&requiressl=yes&sig=AJfQdSswRAIgJObiw1XGLOxa6-JlXPbuDSweP5zESIm4fm-5ZU3IfIECIF2UZAMsIYst8QMU5b2FlDSMDM4VFvYX1Ixjt1yUPbRA&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&spc=UWF9f34CCIsEsx7Wgg_Hoci3tIRZXEOyOrw3Ca-b5mycuK96LQ&svpuc=1&txp=5532434&ump=1&vprv=1&xpc=EgVo2aDSNQ%3D%3D&range=741-2848",
        1
    ],
    "handled": false,
    "message": "Shaka Error 1003",
    "stack": "Error: Shaka Error 1003\n    at new I (https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:23822)\n    at https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:79691\n    at QE (https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:75896)\n    at https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:75677"
}
Error: Shaka Error 1003
    at new I (https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:23822)
    at https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:79691
    at QE (https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:75896)
    at https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:75677
opusforlife2 commented 8 months ago

I rarely got this bug for a long while (several months?) on piped.video, but this week it has resumed occurring on nearly every video I click on, and instance switching is the only solution.

vvirtues commented 8 months ago

I get error 1003 as well, console looks like this I'm not sure if this is too much (or too little) but here you go This was after reloading the page, clearing any previous messages

Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. index.js:1337:41
TypeError: a.default.detectStore(...) is undefined h1-check.js:1:1301
EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support. shaka-player.ui-BUsq2LBA.js:1:553948
McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support. shaka-player.ui-BUsq2LBA.js:1:555660
EmeEncryptionSchemePolyfill: Already installed. shaka-player.ui-BUsq2LBA.js:1:553754
McEncryptionSchemePolyfill: Already installed. shaka-player.ui-BUsq2LBA.js:1:555523
Uncaught (in promise) TypeError: e is null
    showSeekbarPreview https://piped.video/assets/WatchVideo-Ld9NjyNO.js:1
    setupSeekbarPreview https://piped.video/assets/WatchVideo-Ld9NjyNO.js:1
    setupSeekbarPreview https://piped.video/assets/WatchVideo-Ld9NjyNO.js:1
    setPlayerAttrs https://piped.video/assets/WatchVideo-Ld9NjyNO.js:1
    loadVideo https://piped.video/assets/WatchVideo-Ld9NjyNO.js:1
    loadVideo https://piped.video/assets/WatchVideo-Ld9NjyNO.js:1
    mounted https://piped.video/assets/WatchVideo-Ld9NjyNO.js:1
    promise callback*mounted https://piped.video/assets/WatchVideo-Ld9NjyNO.js:1
    Ht https://piped.video/assets/index-D1um4Sjs.js:2
    ln https://piped.video/assets/index-D1um4Sjs.js:2
    st https://piped.video/assets/index-D1um4Sjs.js:2
    __weh https://piped.video/assets/index-D1um4Sjs.js:2
    ef https://piped.video/assets/index-D1um4Sjs.js:2
    tf https://piped.video/assets/index-D1um4Sjs.js:2
    promise callback*Zu https://piped.video/assets/index-D1um4Sjs.js:2
    oa https://piped.video/assets/index-D1um4Sjs.js:2
    effect https://piped.video/assets/index-D1um4Sjs.js:2
    qi https://piped.video/assets/index-D1um4Sjs.js:1
    Cu https://piped.video/assets/index-D1um4Sjs.js:1
    Io https://piped.video/assets/index-D1um4Sjs.js:1
    set value https://piped.video/assets/index-D1um4Sjs.js:1
    U https://piped.video/assets/index-D1um4Sjs.js:6
    q https://piped.video/assets/index-D1um4Sjs.js:6
    promise callback*q https://piped.video/assets/index-D1um4Sjs.js:6
    A https://piped.video/assets/index-D1um4Sjs.js:6
    install https://piped.video/assets/index-D1um4Sjs.js:6
    use https://piped.video/assets/index-D1um4Sjs.js:2
    <anonymous> https://piped.video/assets/index-D1um4Sjs.js:22
7 WatchVideo-Ld9NjyNO.js:1:12622
Object { severity: 2, category: 1, code: 1003, data: (2) […], handled: false, message: "Shaka Error 1003", stack: "I@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:23822\nof/<@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:79691\nQE@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:75897\nn/<@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:75677\npromise callback*je.prototype.Fa@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:75815\nof@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:79401\nof/<@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:79895\nQE@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:75897\nn/<@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:75677\npromise callback*je.prototype.Fa@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:75815\nof@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:79401\nd.request/s<@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:77856\nQE@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:75897\nn/<@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:75677\npromise callback*je.prototype.Fa@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:75815\nd.request@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:77835\ndh@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:379683\nl4/<@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:379523\nuo@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:4335\nlE/this.next@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:4633\ncE/<@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:5016\ncE@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:4909\nC@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:5047\nl4@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:379445\nv@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:372357\ncm/<@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:338378\nuo@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:4335\nlE/this.next@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:4633\ncE/<@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:5016\ncE@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:4909\nC@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:5047\ncm@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:338210\nKc@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:338112\nn4/k.createSegmentIndex/<@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:374356\nuo@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:4335\nlE/this.next@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:4633\ncE/<@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:5016\ncE@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:4909\nC@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:5047\nn4/k.createSegmentIndex@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:374292\nYA/<@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:218159\nuo@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:4335\nlE/this.next@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:4633\ncE/<@https://piped.video/assets/shaka-player.ui-BUsq2LBA.js:1:5016\n" }
WatchVideo-Ld9NjyNO.js:1:10798
    setPlayerAttrs https://piped.video/assets/WatchVideo-Ld9NjyNO.js:1
    (Async: promise callback)
    setPlayerAttrs https://piped.video/assets/WatchVideo-Ld9NjyNO.js:1
    loadVideo https://piped.video/assets/WatchVideo-Ld9NjyNO.js:1
    loadVideo https://piped.video/assets/WatchVideo-Ld9NjyNO.js:1
    mounted https://piped.video/assets/WatchVideo-Ld9NjyNO.js:1
    (Async: promise callback)
    mounted https://piped.video/assets/WatchVideo-Ld9NjyNO.js:1
    Ht https://piped.video/assets/index-D1um4Sjs.js:2
    ln https://piped.video/assets/index-D1um4Sjs.js:2
    st https://piped.video/assets/index-D1um4Sjs.js:2
    __weh https://piped.video/assets/index-D1um4Sjs.js:2
    ef https://piped.video/assets/index-D1um4Sjs.js:2
    tf https://piped.video/assets/index-D1um4Sjs.js:2
    (Async: promise callback)
    Zu https://piped.video/assets/index-D1um4Sjs.js:2
    oa https://piped.video/assets/index-D1um4Sjs.js:2
    effect https://piped.video/assets/index-D1um4Sjs.js:2
    qi https://piped.video/assets/index-D1um4Sjs.js:1
    Cu https://piped.video/assets/index-D1um4Sjs.js:1
    Io https://piped.video/assets/index-D1um4Sjs.js:1
    set value https://piped.video/assets/index-D1um4Sjs.js:1
    U https://piped.video/assets/index-D1um4Sjs.js:6
    q https://piped.video/assets/index-D1um4Sjs.js:6
    (Async: promise callback)
    q https://piped.video/assets/index-D1um4Sjs.js:6
    A https://piped.video/assets/index-D1um4Sjs.js:6
    install https://piped.video/assets/index-D1um4Sjs.js:6
    use https://piped.video/assets/index-D1um4Sjs.js:2
    <anonymous> https://piped.video/assets/index-D1um4Sjs.js:22

link: https://piped.video/watch?v=6TBQ7lWYQ0g

mikhirev commented 7 months ago

I also get error 1002 on most videos. Below is a corresponding log entry:

{
  "severity": 2,
  "category": 1,
  "code": 1002,
  "data": [
    "https://pipedproxy-cdg-2.kavin.rocks/videoplayback?c=ANDROID&clen=4320056&cpn=B-ocBy6d_oWcseQh&dur=253.321&ei=ZUD0ZcrzBum6vdIPp4msyAI&expire=1710527685&fvip=2&gir=yes&host=rr4---sn-25ge7nzk.googlevideo.com&id=o-AO6JCPmY2OpQHxZftkr3X_i2aHlo9LMTQaLMFDqrAFaN&initcwndbps=2382500&ip=156.146.63.172&itag=251&keepalive=yes&lmt=1710443348971777&lsig=APTiJQcwRAIgO-IlKUOR__k_eKlg_T1lkzugaQyxwC-tI7f-eJeaMEwCIA5-68TFKEA-ucQZiaHAG5WdPbv36vxdobyIZTaxDGGT&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=it&mime=audio%2Fwebm&mm=31%2C29&mn=sn-25ge7nzk%2Csn-25glenld&ms=au%2Crdu&mt=1710505755&mv=m&mvi=4&pl=24&qhash=36d8a19c&requiressl=yes&sig=AJfQdSswRQIhANMSsDTkmzSq-hUR6ndc85dO1EcRLp98-50YUmJ0kztnAiBuR0jEIV9-0UHAtKcFqlXzoZYjW05b2haS174-hqkTuw%3D%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&svpuc=1&txp=4432434&ump=1&vprv=1&xpc=EgVo2aDSNQ%3D%3D&range=0-258",
    {},
    1
  ],
  "handled": false,
  "message": "Shaka Error 1002",
  "stack": "I@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:23822\nu2/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:437516\nlo@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4335\ncE/this.throw@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4728\nn@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4893\npromise callback*o@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4992\nhE/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:5013\nhE@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4909\nC@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:5047\nu2@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:436744\nda@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:436332\nof/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:79079\nJE@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:75908\nn/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:75688\npromise callback*je.prototype.Fa@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:75826\nof@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:79026\nof/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:79906\nJE@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:75908\nn/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:75688\npromise callback*je.prototype.Fa@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:75826\nof@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:79412\nd.request/s<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:77867\nJE@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:75908\nn/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:75688\npromise callback*je.prototype.Fa@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:75826\nd.request@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:77846\ndh@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:380087\nc4/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:379927\nlo@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4335\ncE/this.next@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4633\nhE/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:5016\nhE@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4909\nC@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:5047\nc4@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:379849\nv@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:372761\ncm/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:338568\nlo@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4335\ncE/this.next@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4633\nhE/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:5016\nhE@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4909\nC@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:5047\ncm@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:338400\nKc@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:338302\ni4/k.createSegmentIndex/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:374760\nlo@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4335\ncE/this.next@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4633\nhE/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:5016\nhE@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4909\nC@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:5047\ni4/k.createSegmentIndex@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:374696\nqA/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:218322\nlo@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4335\ncE/this.next@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4633\nhE/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:5016\n"
}

There are also many CORS errors like following:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://pipedproxy-cdg-2.kavin.rocks/videoplayback?c=ANDROID&clen=4320056&cpn=B-ocBy6d_oWcseQh&dur=253.321&ei=ZUD0ZcrzBum6vdIPp4msyAI&expire=1710527685&fvip=2&gir=yes&host=rr4---sn-25ge7nzk.googlevideo.com&id=o-AO6JCPmY2OpQHxZftkr3X_i2aHlo9LMTQaLMFDqrAFaN&initcwndbps=2382500&ip=156.146.63.172&itag=251&keepalive=yes&lmt=1710443348971777&lsig=APTiJQcwRAIgO-IlKUOR__k_eKlg_T1lkzugaQyxwC-tI7f-eJeaMEwCIA5-68TFKEA-ucQZiaHAG5WdPbv36vxdobyIZTaxDGGT&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=it&mime=audio%2Fwebm&mm=31%2C29&mn=sn-25ge7nzk%2Csn-25glenld&ms=au%2Crdu&mt=1710505755&mv=m&mvi=4&pl=24&qhash=36d8a19c&requiressl=yes&sig=AJfQdSswRQIhANMSsDTkmzSq-hUR6ndc85dO1EcRLp98-50YUmJ0kztnAiBuR0jEIV9-0UHAtKcFqlXzoZYjW05b2haS174-hqkTuw%3D%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&svpuc=1&txp=4432434&ump=1&vprv=1&xpc=EgVo2aDSNQ%3D%3D&range=0-258. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 500.
opusforlife2 commented 7 months ago

Right now most instances from the dropdown in settings are giving me 1002, and the console shows CORS errors for all of them. In fact, the r4fo.com instance isn't even loading the site right now, and CORS errors are the reason there as well.

Scorpoon commented 7 months ago

Same on my selfhosted instance. 1002 Error, CORS Error in the browser console and "upstream prematurely closed connection while reading upstream" in the container logs.

The error is coming directly from the shaka player, so i had a look into that direction and found following in the faq: "Q: I am getting HTTP_ERROR or error code 1002.

A: The browser rejected the request. Look at the browser logs for more info. This is usually a CORS error, which means you need particular headers in the response. Additionally, with some manifests, we will send a Range header. This will require explicit approval through the CORS header Access-Control-Allow-Headers.

This can also happen with mixed-content restrictions. If the site is using https:, then your manifest and segments must also."

Maybe this helps someone to figure out what's going on.

nanedi commented 7 months ago

Get a lot of the same errors today here.

Try to enable dash. It's fine with dash on libretube.

Atemu commented 7 months ago

Try switching resolution. 360p just worked for me.

This is a self-hosted instance. No error from piped-proxy whatsoever in the logs. Complete radio silence other than piped-proxy | Running server!.

sunlightspectre commented 7 months ago

In the interest of cross-posting, though I mostly use Invidious...

Tested across all current Piped instances online, including customised instances like privacydev's.
Impossible to get any access of this time. Quality/auto-quality/audio quality settings have no effect.
Both I and several others think it's an integrity check issue, though I am not familiar enough with how Piped handles that to say it with certainty. All I can is that access is completely impossible for me, right now.

agpsl commented 7 months ago

I'm also getting 1002 errors in my self hosted instance today:

Example:

{
    "severity": 2,
    "category": 1,
    "code": 1002,
    "data": [
        "https://pipedproxy.redacted.com/videoplayback?aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C271%2C278%2C313%2C394%2C395%2C396%2C397%2C398%2C399%2C400%2C401&c=WEB&clen=238595405&cpn=JQSImq6wL9WXMuYy&dur=1430.053&ei=qyYIZpf-L9Pn1sQPt4GWqAM&expire=1711831819&fexp=51141542&fvip=5&gir=yes&host=rr1---sn-jvoxju5-8j2e.googlevideo.com&id=o-AD9Lk30OEpUOGBF4AXADYtecdWk8Q0juUyL6Vms9xrga&initcwndbps=1112500&ip=0.0.0.0&itag=137&keepalive=yes&lmt=1711782519404271&lsig=ALClDIEwRQIhAK1M4BqMsxPT-1oSviQojkkVSehx1TrFwNTCg85oD4UjAiBvyahhmm6HN3YdVn5cnEk4Mn3YhtLCungHmsLspiRY8A%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=jP&mime=video%2Fmp4&mm=31%2C29&mn=sn-jvoxju5-8j2e%2Csn-bg0ezn7e&ms=au%2Crdu&mt=1711809909&mv=m&mvi=1&n=Y4Y_3j9DDZcFzA&ns=Itzjjn7rBmWC81maBpA_b38Q&pl=25&requiressl=yes&sefc=1&sig=AJfQdSswRQIhANx-PjXK4PtwWIaHdk-nnUrb0QMsfxy7zyRO9FMSi2EfAiBOp7eAURjcTOkqant1SfrL9bamXZb4Re0YEZwysMZp0Q%3D%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&spc=UWF9f2_Ua1woxVnOMmsbJYxbrEz2TWkF-Tlty84Oa0yc6N_06sb9GcibTA&svpuc=1&txp=5532434&ump=1&vprv=1&xpc=EgVo2aDSNQ%3D%3D&range=741-3964",
        {},
        1
    ],
    "handled": false,
    "message": "Shaka Error 1002",
    "stack": "Error: Shaka Error 1002\n    at new I (https://piped.redacted.com/assets/shaka-player.ui-vTahH29n.js:10:3442)\n    at aE.h (https://piped.redacted.com/assets/shaka-player.ui-vTahH29n.js:15:254450)\n    at lo (https://piped.redacted.com/assets/shaka-player.ui-vTahH29n.js:6:3742)\n    at cE.throw (https://piped.redacted.com/assets/shaka-player.ui-vTahH29n.js:6:4135)\n    at n (https://piped.redacted.com/assets/shaka-player.ui-vTahH29n.js:6:4305)"
}
nanedi commented 7 months ago

For now, more than 80% of videos cannot be played. Error 1002: https://youtu.be/iz13hhFRbo4 No error code: https://youtu.be/uR8qWf-6BvI

manuelkamp commented 7 months ago

same here, selfhosted instance, about 80-90% of videos not playing anymore since a few days

nanedi commented 7 months ago

same here, selfhosted instance, about 80-90% of videos not playing anymore since a few days

Try to enable dash. It's fine with dash on libretube.

I suspect this is an encoding/decoding issue.

@manuelkamp

manuelkamp commented 7 months ago

same here, selfhosted instance, about 80-90% of videos not playing anymore since a few days

Try to enable dash. It's fine with dash on libretube.

I suspect this is an encoding/decoding issue.

@manuelkamp

I do not know what that means, sorry. I do not have libretube.

nanedi commented 7 months ago

@manuelkamp

this https://github.com/libre-tube/LibreTube/releases

manuelkamp commented 7 months ago

sorry, was on a wrong path, I use libretube on my android, but there is no libretube for my windows laptop/pc or my LG tv where I am using 99% of viewtime in Piped

nanedi commented 7 months ago

@manuelkamp

I suspect this is an encoding/decoding issue. Plz wait for the new fix.

revsuine commented 7 months ago

Experiencing 1002s on every single video I've tried on piped.video. The comments are also displaying like this:

a bunch of comments that say "null"

I'm not sure how much of this will be relevant for you, but here's everything in my console (using this video as an example, but like I said, this happens on every single video I've tried to watch today):

EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support. shaka-player.ui-vTahH29n.js:1:554197
McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support. shaka-player.ui-vTahH29n.js:1:555909
[trimmed because it seems to be a repeat of the below from "TypeError" to "index]
TypeError: D is null
    v https://piped.video/assets/index-6WWQy-Nd.js:8
    r https://piped.video/assets/index-6WWQy-Nd.js:8
    effect https://piped.video/assets/index-6WWQy-Nd.js:3
    run https://piped.video/assets/index-6WWQy-Nd.js:3
    get value https://piped.video/assets/index-6WWQy-Nd.js:3
    o https://piped.video/assets/index-6WWQy-Nd.js:8
    effect https://piped.video/assets/index-6WWQy-Nd.js:3
    run https://piped.video/assets/index-6WWQy-Nd.js:3
    get value https://piped.video/assets/index-6WWQy-Nd.js:3
    i https://piped.video/assets/index-6WWQy-Nd.js:8
    effect https://piped.video/assets/index-6WWQy-Nd.js:3
    run https://piped.video/assets/index-6WWQy-Nd.js:3
    get value https://piped.video/assets/index-6WWQy-Nd.js:3
    get https://piped.video/assets/index-6WWQy-Nd.js:3
    setup https://piped.video/assets/index-6WWQy-Nd.js:8
    Io https://piped.video/assets/index-6WWQy-Nd.js:4
    V https://piped.video/assets/index-6WWQy-Nd.js:4
    run https://piped.video/assets/index-6WWQy-Nd.js:3
    update https://piped.video/assets/index-6WWQy-Nd.js:4
    ve https://piped.video/assets/index-6WWQy-Nd.js:4
    Pe https://piped.video/assets/index-6WWQy-Nd.js:4
    re https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    $ https://piped.video/assets/index-6WWQy-Nd.js:4
    w https://piped.video/assets/index-6WWQy-Nd.js:4
    C https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    $ https://piped.video/assets/index-6WWQy-Nd.js:4
    w https://piped.video/assets/index-6WWQy-Nd.js:4
    C https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    $ https://piped.video/assets/index-6WWQy-Nd.js:4
    w https://piped.video/assets/index-6WWQy-Nd.js:4
    C https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    $ https://piped.video/assets/index-6WWQy-Nd.js:4
    w https://piped.video/assets/index-6WWQy-Nd.js:4
    C https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    V https://piped.video/assets/index-6WWQy-Nd.js:4
    run https://piped.video/assets/index-6WWQy-Nd.js:3
    update https://piped.video/assets/index-6WWQy-Nd.js:4
    ve https://piped.video/assets/index-6WWQy-Nd.js:4
    Pe https://piped.video/assets/index-6WWQy-Nd.js:4
    re https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    $ https://piped.video/assets/index-6WWQy-Nd.js:4
    H https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    $ https://piped.video/assets/index-6WWQy-Nd.js:4
    w https://piped.video/assets/index-6WWQy-Nd.js:4
    C https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    Q https://piped.video/assets/index-6WWQy-Nd.js:4
    H https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    Q https://piped.video/assets/index-6WWQy-Nd.js:4
    k https://piped.video/assets/index-6WWQy-Nd.js:4
    C https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    V https://piped.video/assets/index-6WWQy-Nd.js:4
    run https://piped.video/assets/index-6WWQy-Nd.js:3
    update https://piped.video/assets/index-6WWQy-Nd.js:4
    zt https://piped.video/assets/index-6WWQy-Nd.js:4
    dc https://piped.video/assets/index-6WWQy-Nd.js:4
index-6WWQy-Nd.js:4:587
EmeEncryptionSchemePolyfill: Already installed. shaka-player.ui-vTahH29n.js:1:554003
McEncryptionSchemePolyfill: Already installed. shaka-player.ui-vTahH29n.js:1:555772
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://pipedproxy-cwl.kavin.rocks/videoplayback?aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278%2C298%2C299%2C302%2C303%2C394%2C395%2C396%2C397%2C398%2C399&c=WEB&clen=20638403&cpn=bvvsL8UsYb1xvAEX&dur=931.320&ei=mG8IZvPrJPiqxN8Pmf6mcA&expire=1711850488&fexp=51141542&fvip=1&gir=yes&host=rr2---sn-5hne6nzy.googlevideo.com&id=o-AJsFE67vt6NP7yf0m4jGuQFcnulrROyU4EUV1dIwRLX2&initcwndbps=2331250&ip=194.110.13.94&itag=135&keepalive=yes&lmt=1688588138330052&lsig=ALClDIEwRAIgTpNeTULJIkXHKHYBkOvD_FXYhe6r4TRbgYBa8TCkc10CIFFjduw8_GerLy9MRrQkZPMKRir8-QcXM92cUmSL0ot2&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=bE&mime=video%2Fmp4&mm=31%2C26&mn=sn-5hne6nzy%2Csn-4g5edn6k&ms=au%2Conr&mt=1711828611&mv=m&mvi=2&n=bsnB1G0ZHUA3xA&ns=ljO6bdXCcZ9Cz8jiuJIObdsQ&pl=24&qhash=ba7adbf7&requiressl=yes&sefc=1&sig=AJfQdSswRAIgVSd5DeIxP8Z-VygolNuVywkZur2H8lzandU1m_6m_IACIFGn_67PoKPpVCqzLidJIdEq1ul0rZ8xNhVO6zx2-ruV&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&spc=UWF9f_efeVWvG8HvhXq8auqqsNLXDmvuc9fV09WwRA9eFzY&svpuc=1&txp=5535434&ump=1&vprv=1&xpc=EgVo2aDSNQ%3D%3D&range=741-2860. (Reason: CORS request did not succeed). Status code: (null).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://pipedproxy-cwl.kavin.rocks/videoplayback?c=WEB&clen=5893922&cpn=bvvsL8UsYb1xvAEX&dur=931.321&ei=mG8IZvPrJPiqxN8Pmf6mcA&expire=1711850488&fexp=51141542&fvip=1&gir=yes&host=rr2---sn-5hne6nzy.googlevideo.com&id=o-AJsFE67vt6NP7yf0m4jGuQFcnulrROyU4EUV1dIwRLX2&initcwndbps=2331250&ip=194.110.13.94&itag=249&keepalive=yes&lmt=1688583208003113&lsig=ALClDIEwRAIgTpNeTULJIkXHKHYBkOvD_FXYhe6r4TRbgYBa8TCkc10CIFFjduw8_GerLy9MRrQkZPMKRir8-QcXM92cUmSL0ot2&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=bE&mime=audio%2Fwebm&mm=31%2C26&mn=sn-5hne6nzy%2Csn-4g5edn6k&ms=au%2Conr&mt=1711828611&mv=m&mvi=2&n=bsnB1G0ZHUA3xA&ns=ljO6bdXCcZ9Cz8jiuJIObdsQ&pl=24&qhash=ef39bf3a&requiressl=yes&sefc=1&sig=AJfQdSswRgIhAMbfjX1W7NhUsQDB2HSp0ZpbgaBQM4DphAT6niPAFv9xAiEAwdAXeHeQHJpQptxpMKOvdOkXfFBtnVqvoBhGMC1rJk8%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&spc=UWF9f_efeVWvG8HvhXq8auqqsNLXDmvuc9fV09WwRA9eFzY&svpuc=1&txp=5532434&ump=1&vprv=1&xpc=EgVo2aDSNQ%3D%3D&range=0-258. (Reason: CORS request did not succeed). Status code: (null).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://pipedproxy-cwl.kavin.rocks/videoplayback?c=WEB&clen=5893922&cpn=bvvsL8UsYb1xvAEX&dur=931.321&ei=mG8IZvPrJPiqxN8Pmf6mcA&expire=1711850488&fexp=51141542&fvip=1&gir=yes&host=rr2---sn-5hne6nzy.googlevideo.com&id=o-AJsFE67vt6NP7yf0m4jGuQFcnulrROyU4EUV1dIwRLX2&initcwndbps=2331250&ip=194.110.13.94&itag=249&keepalive=yes&lmt=1688583208003113&lsig=ALClDIEwRAIgTpNeTULJIkXHKHYBkOvD_FXYhe6r4TRbgYBa8TCkc10CIFFjduw8_GerLy9MRrQkZPMKRir8-QcXM92cUmSL0ot2&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=bE&mime=audio%2Fwebm&mm=31%2C26&mn=sn-5hne6nzy%2Csn-4g5edn6k&ms=au%2Conr&mt=1711828611&mv=m&mvi=2&n=bsnB1G0ZHUA3xA&ns=ljO6bdXCcZ9Cz8jiuJIObdsQ&pl=24&qhash=ef39bf3a&requiressl=yes&sefc=1&sig=AJfQdSswRgIhAMbfjX1W7NhUsQDB2HSp0ZpbgaBQM4DphAT6niPAFv9xAiEAwdAXeHeQHJpQptxpMKOvdOkXfFBtnVqvoBhGMC1rJk8%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&spc=UWF9f_efeVWvG8HvhXq8auqqsNLXDmvuc9fV09WwRA9eFzY&svpuc=1&txp=5532434&ump=1&vprv=1&xpc=EgVo2aDSNQ%3D%3D&range=259-1852. (Reason: CORS request did not succeed). Status code: (null).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://pipedproxy-cwl.kavin.rocks/videoplayback?aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278%2C298%2C299%2C302%2C303%2C394%2C395%2C396%2C397%2C398%2C399&c=WEB&clen=20638403&cpn=bvvsL8UsYb1xvAEX&dur=931.320&ei=mG8IZvPrJPiqxN8Pmf6mcA&expire=1711850488&fexp=51141542&fvip=1&gir=yes&host=rr2---sn-5hne6nzy.googlevideo.com&id=o-AJsFE67vt6NP7yf0m4jGuQFcnulrROyU4EUV1dIwRLX2&initcwndbps=2331250&ip=194.110.13.94&itag=135&keepalive=yes&lmt=1688588138330052&lsig=ALClDIEwRAIgTpNeTULJIkXHKHYBkOvD_FXYhe6r4TRbgYBa8TCkc10CIFFjduw8_GerLy9MRrQkZPMKRir8-QcXM92cUmSL0ot2&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=bE&mime=video%2Fmp4&mm=31%2C26&mn=sn-5hne6nzy%2Csn-4g5edn6k&ms=au%2Conr&mt=1711828611&mv=m&mvi=2&n=bsnB1G0ZHUA3xA&ns=ljO6bdXCcZ9Cz8jiuJIObdsQ&pl=24&qhash=ba7adbf7&requiressl=yes&sefc=1&sig=AJfQdSswRAIgVSd5DeIxP8Z-VygolNuVywkZur2H8lzandU1m_6m_IACIFGn_67PoKPpVCqzLidJIdEq1ul0rZ8xNhVO6zx2-ruV&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&spc=UWF9f_efeVWvG8HvhXq8auqqsNLXDmvuc9fV09WwRA9eFzY&svpuc=1&txp=5535434&ump=1&vprv=1&xpc=EgVo2aDSNQ%3D%3D&range=741-2860. (Reason: CORS request did not succeed). Status code: (null).
Object { severity: 2, category: 1, code: 1002, data: (3) […], handled: false, message: "Shaka Error 1002", stack: "I@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:23822\nu2/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:437516\nlo@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4335\ncE/this.throw@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4728\nn@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4893\n" }
WatchVideo-CZ3GI6y4.js:3:10758
nixenos commented 7 months ago

I can confirm that every video I tried today on official piped.video instance as well as my self-hosted one returned error 1002. Also in 90% of the cases comments do not load.

Qapples commented 7 months ago

Might be worth mentioning that replies to the comments of a video do load even when those comments to the video fail to load themselves, as seen in the screenshot below.

image

AlyoshaVasilieva commented 7 months ago

My private instance on which I have hackily disabled UMP can watch videos just fine. Also, I've tested using an extension to disable UMP (by stripping it from the query string passed to proxy) and it fixes errors 100x (at least as far as I've seen) as long as the instance does not have qhashes enabled. For example, https://piped.us.projectsegfau.lt/watch?v=EOqw86OGIB0 gives error 1002 to me, but stripping ump=1 from proxy makes it work.

Extension is a basic declarativeNetRequest extension that is just:

manifest.json: ```json { "name": "No Piped UMP", "version": "1.0.0", "declarative_net_request": { "rule_resources": [{ "id": "ruleset_1", "enabled": true, "path": "rules.json" }] }, "permissions": [ "declarativeNetRequest" ], "host_permissions": [ "" ], "manifest_version": 3 } ```
rules.json: ```json [ { "id": 1, "priority": 1, "action": { "type": "redirect", "redirect": { "transform": { "queryTransform": { "removeParams": [ "ump" ] } } } }, "condition": { "urlFilter": "||proxy.piped.projectsegfau.lt", "resourceTypes": [ "main_frame", "stylesheet", "font", "image", "object", "media", "xmlhttprequest" ] } } ] ```

However, this won't work on instances with qhashes enabled (like piped.video) because the entire point of that is to only allow backend-generated proxy URLs. (also, only tested on Chrome, dunno what Firefox's MV3 support is like right now)

By stripping the ump parameter, the proxy's UMP transformation code won't be activated.

My private instance is on a Hetzner box with IPv6 rotation.

Kostrol commented 7 months ago

It's worse than ever unfortunately, constant disruption throughout the day. I'll have a good streak watching videos just fine, then I will hit a particular one that locks up and force me to cycle/refresh between at least 5 different instances before it might play with any of the following videos i try to play after, it will look like it loads and buffers a few seconds, but remain stuck until i get 1002. It's a daily frustration and struggle, using Librewolf.

Kostrol commented 7 months ago

Output here:

2024-03-31_03-22

tonytonyistony commented 7 months ago

Confirming my instance is unusable at this point with the same errors.

github2099 commented 7 months ago

error code 1002 on firefox

nixenos commented 7 months ago

Following snippet works for disabling UMP if you use nginx as your reverse proxy:

        sub_filter '&ump=1' '';
        sub_filter_once off;
manuelkamp commented 7 months ago

Following snippet works for disabling UMP if you use nginx as your reverse proxy:

        sub_filter '&ump=1' '';
        sub_filter_once off;

I added this to frontend and backend in nginx reverse proxy, but no luck. I do not get the error, but videos are not loading/playing either...

PS: I found out, that this does not work on my nginx, in the logs I can see that the &ump=1 does not get removed...?

PPS: You need to use that:

        proxy_set_header Accept-Encoding "";
        sub_filter '&ump=1' '';
            sub_filter_once off;
AlyoshaVasilieva commented 7 months ago

In config/pipedapi.conf, adding:

        sub_filter '&ump=1' '';
        sub_filter_once off;
        sub_filter_types application/json;

inside the location / { block seems to successfully strip UMP from stream URLs.

nanedi commented 7 months ago

Experiencing 1002s on every single video I've tried on piped.video. The comments are also displaying like this:

a bunch of comments that say "null"

I'm not sure how much of this will be relevant for you, but here's everything in my console (using this video as an example, but like I said, this happens on every single video I've tried to watch today):

EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support. shaka-player.ui-vTahH29n.js:1:554197
McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support. shaka-player.ui-vTahH29n.js:1:555909
[trimmed because it seems to be a repeat of the below from "TypeError" to "index]
TypeError: D is null
    v https://piped.video/assets/index-6WWQy-Nd.js:8
    r https://piped.video/assets/index-6WWQy-Nd.js:8
    effect https://piped.video/assets/index-6WWQy-Nd.js:3
    run https://piped.video/assets/index-6WWQy-Nd.js:3
    get value https://piped.video/assets/index-6WWQy-Nd.js:3
    o https://piped.video/assets/index-6WWQy-Nd.js:8
    effect https://piped.video/assets/index-6WWQy-Nd.js:3
    run https://piped.video/assets/index-6WWQy-Nd.js:3
    get value https://piped.video/assets/index-6WWQy-Nd.js:3
    i https://piped.video/assets/index-6WWQy-Nd.js:8
    effect https://piped.video/assets/index-6WWQy-Nd.js:3
    run https://piped.video/assets/index-6WWQy-Nd.js:3
    get value https://piped.video/assets/index-6WWQy-Nd.js:3
    get https://piped.video/assets/index-6WWQy-Nd.js:3
    setup https://piped.video/assets/index-6WWQy-Nd.js:8
    Io https://piped.video/assets/index-6WWQy-Nd.js:4
    V https://piped.video/assets/index-6WWQy-Nd.js:4
    run https://piped.video/assets/index-6WWQy-Nd.js:3
    update https://piped.video/assets/index-6WWQy-Nd.js:4
    ve https://piped.video/assets/index-6WWQy-Nd.js:4
    Pe https://piped.video/assets/index-6WWQy-Nd.js:4
    re https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    $ https://piped.video/assets/index-6WWQy-Nd.js:4
    w https://piped.video/assets/index-6WWQy-Nd.js:4
    C https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    $ https://piped.video/assets/index-6WWQy-Nd.js:4
    w https://piped.video/assets/index-6WWQy-Nd.js:4
    C https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    $ https://piped.video/assets/index-6WWQy-Nd.js:4
    w https://piped.video/assets/index-6WWQy-Nd.js:4
    C https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    $ https://piped.video/assets/index-6WWQy-Nd.js:4
    w https://piped.video/assets/index-6WWQy-Nd.js:4
    C https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    V https://piped.video/assets/index-6WWQy-Nd.js:4
    run https://piped.video/assets/index-6WWQy-Nd.js:3
    update https://piped.video/assets/index-6WWQy-Nd.js:4
    ve https://piped.video/assets/index-6WWQy-Nd.js:4
    Pe https://piped.video/assets/index-6WWQy-Nd.js:4
    re https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    $ https://piped.video/assets/index-6WWQy-Nd.js:4
    H https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    $ https://piped.video/assets/index-6WWQy-Nd.js:4
    w https://piped.video/assets/index-6WWQy-Nd.js:4
    C https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    Q https://piped.video/assets/index-6WWQy-Nd.js:4
    H https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    Q https://piped.video/assets/index-6WWQy-Nd.js:4
    k https://piped.video/assets/index-6WWQy-Nd.js:4
    C https://piped.video/assets/index-6WWQy-Nd.js:4
    I https://piped.video/assets/index-6WWQy-Nd.js:4
    V https://piped.video/assets/index-6WWQy-Nd.js:4
    run https://piped.video/assets/index-6WWQy-Nd.js:3
    update https://piped.video/assets/index-6WWQy-Nd.js:4
    zt https://piped.video/assets/index-6WWQy-Nd.js:4
    dc https://piped.video/assets/index-6WWQy-Nd.js:4
index-6WWQy-Nd.js:4:587
EmeEncryptionSchemePolyfill: Already installed. shaka-player.ui-vTahH29n.js:1:554003
McEncryptionSchemePolyfill: Already installed. shaka-player.ui-vTahH29n.js:1:555772
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://pipedproxy-cwl.kavin.rocks/videoplayback?aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278%2C298%2C299%2C302%2C303%2C394%2C395%2C396%2C397%2C398%2C399&c=WEB&clen=20638403&cpn=bvvsL8UsYb1xvAEX&dur=931.320&ei=mG8IZvPrJPiqxN8Pmf6mcA&expire=1711850488&fexp=51141542&fvip=1&gir=yes&host=rr2---sn-5hne6nzy.googlevideo.com&id=o-AJsFE67vt6NP7yf0m4jGuQFcnulrROyU4EUV1dIwRLX2&initcwndbps=2331250&ip=194.110.13.94&itag=135&keepalive=yes&lmt=1688588138330052&lsig=ALClDIEwRAIgTpNeTULJIkXHKHYBkOvD_FXYhe6r4TRbgYBa8TCkc10CIFFjduw8_GerLy9MRrQkZPMKRir8-QcXM92cUmSL0ot2&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=bE&mime=video%2Fmp4&mm=31%2C26&mn=sn-5hne6nzy%2Csn-4g5edn6k&ms=au%2Conr&mt=1711828611&mv=m&mvi=2&n=bsnB1G0ZHUA3xA&ns=ljO6bdXCcZ9Cz8jiuJIObdsQ&pl=24&qhash=ba7adbf7&requiressl=yes&sefc=1&sig=AJfQdSswRAIgVSd5DeIxP8Z-VygolNuVywkZur2H8lzandU1m_6m_IACIFGn_67PoKPpVCqzLidJIdEq1ul0rZ8xNhVO6zx2-ruV&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&spc=UWF9f_efeVWvG8HvhXq8auqqsNLXDmvuc9fV09WwRA9eFzY&svpuc=1&txp=5535434&ump=1&vprv=1&xpc=EgVo2aDSNQ%3D%3D&range=741-2860. (Reason: CORS request did not succeed). Status code: (null).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://pipedproxy-cwl.kavin.rocks/videoplayback?c=WEB&clen=5893922&cpn=bvvsL8UsYb1xvAEX&dur=931.321&ei=mG8IZvPrJPiqxN8Pmf6mcA&expire=1711850488&fexp=51141542&fvip=1&gir=yes&host=rr2---sn-5hne6nzy.googlevideo.com&id=o-AJsFE67vt6NP7yf0m4jGuQFcnulrROyU4EUV1dIwRLX2&initcwndbps=2331250&ip=194.110.13.94&itag=249&keepalive=yes&lmt=1688583208003113&lsig=ALClDIEwRAIgTpNeTULJIkXHKHYBkOvD_FXYhe6r4TRbgYBa8TCkc10CIFFjduw8_GerLy9MRrQkZPMKRir8-QcXM92cUmSL0ot2&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=bE&mime=audio%2Fwebm&mm=31%2C26&mn=sn-5hne6nzy%2Csn-4g5edn6k&ms=au%2Conr&mt=1711828611&mv=m&mvi=2&n=bsnB1G0ZHUA3xA&ns=ljO6bdXCcZ9Cz8jiuJIObdsQ&pl=24&qhash=ef39bf3a&requiressl=yes&sefc=1&sig=AJfQdSswRgIhAMbfjX1W7NhUsQDB2HSp0ZpbgaBQM4DphAT6niPAFv9xAiEAwdAXeHeQHJpQptxpMKOvdOkXfFBtnVqvoBhGMC1rJk8%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&spc=UWF9f_efeVWvG8HvhXq8auqqsNLXDmvuc9fV09WwRA9eFzY&svpuc=1&txp=5532434&ump=1&vprv=1&xpc=EgVo2aDSNQ%3D%3D&range=0-258. (Reason: CORS request did not succeed). Status code: (null).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://pipedproxy-cwl.kavin.rocks/videoplayback?c=WEB&clen=5893922&cpn=bvvsL8UsYb1xvAEX&dur=931.321&ei=mG8IZvPrJPiqxN8Pmf6mcA&expire=1711850488&fexp=51141542&fvip=1&gir=yes&host=rr2---sn-5hne6nzy.googlevideo.com&id=o-AJsFE67vt6NP7yf0m4jGuQFcnulrROyU4EUV1dIwRLX2&initcwndbps=2331250&ip=194.110.13.94&itag=249&keepalive=yes&lmt=1688583208003113&lsig=ALClDIEwRAIgTpNeTULJIkXHKHYBkOvD_FXYhe6r4TRbgYBa8TCkc10CIFFjduw8_GerLy9MRrQkZPMKRir8-QcXM92cUmSL0ot2&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=bE&mime=audio%2Fwebm&mm=31%2C26&mn=sn-5hne6nzy%2Csn-4g5edn6k&ms=au%2Conr&mt=1711828611&mv=m&mvi=2&n=bsnB1G0ZHUA3xA&ns=ljO6bdXCcZ9Cz8jiuJIObdsQ&pl=24&qhash=ef39bf3a&requiressl=yes&sefc=1&sig=AJfQdSswRgIhAMbfjX1W7NhUsQDB2HSp0ZpbgaBQM4DphAT6niPAFv9xAiEAwdAXeHeQHJpQptxpMKOvdOkXfFBtnVqvoBhGMC1rJk8%3D&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&spc=UWF9f_efeVWvG8HvhXq8auqqsNLXDmvuc9fV09WwRA9eFzY&svpuc=1&txp=5532434&ump=1&vprv=1&xpc=EgVo2aDSNQ%3D%3D&range=259-1852. (Reason: CORS request did not succeed). Status code: (null).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://pipedproxy-cwl.kavin.rocks/videoplayback?aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278%2C298%2C299%2C302%2C303%2C394%2C395%2C396%2C397%2C398%2C399&c=WEB&clen=20638403&cpn=bvvsL8UsYb1xvAEX&dur=931.320&ei=mG8IZvPrJPiqxN8Pmf6mcA&expire=1711850488&fexp=51141542&fvip=1&gir=yes&host=rr2---sn-5hne6nzy.googlevideo.com&id=o-AJsFE67vt6NP7yf0m4jGuQFcnulrROyU4EUV1dIwRLX2&initcwndbps=2331250&ip=194.110.13.94&itag=135&keepalive=yes&lmt=1688588138330052&lsig=ALClDIEwRAIgTpNeTULJIkXHKHYBkOvD_FXYhe6r4TRbgYBa8TCkc10CIFFjduw8_GerLy9MRrQkZPMKRir8-QcXM92cUmSL0ot2&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&mh=bE&mime=video%2Fmp4&mm=31%2C26&mn=sn-5hne6nzy%2Csn-4g5edn6k&ms=au%2Conr&mt=1711828611&mv=m&mvi=2&n=bsnB1G0ZHUA3xA&ns=ljO6bdXCcZ9Cz8jiuJIObdsQ&pl=24&qhash=ba7adbf7&requiressl=yes&sefc=1&sig=AJfQdSswRAIgVSd5DeIxP8Z-VygolNuVywkZur2H8lzandU1m_6m_IACIFGn_67PoKPpVCqzLidJIdEq1ul0rZ8xNhVO6zx2-ruV&source=youtube&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cxpc%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&spc=UWF9f_efeVWvG8HvhXq8auqqsNLXDmvuc9fV09WwRA9eFzY&svpuc=1&txp=5535434&ump=1&vprv=1&xpc=EgVo2aDSNQ%3D%3D&range=741-2860. (Reason: CORS request did not succeed). Status code: (null).
Object { severity: 2, category: 1, code: 1002, data: (3) […], handled: false, message: "Shaka Error 1002", stack: "I@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:23822\nu2/<@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:437516\nlo@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4335\ncE/this.throw@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4728\nn@https://piped.video/assets/shaka-player.ui-vTahH29n.js:1:4893\n" }
WatchVideo-CZ3GI6y4.js:3:10758

The same issue here.

stonerl commented 7 months ago

In config/pipedapi.conf, adding:

        sub_filter '&ump=1' '';
        sub_filter_once off;
        sub_filter_types application/json;

inside the location / { block seems to successfully strip UMP from stream URLs.

Can confirm that this is working.

tonytonyistony commented 7 months ago

In config/pipedapi.conf, adding:

        sub_filter '&ump=1' '';
        sub_filter_once off;
        sub_filter_types application/json;

inside the location / { block seems to successfully strip UMP from stream URLs.

Can confirm that this is working.

Confirmed as well.

ngn13 commented 7 months ago

In config/pipedapi.conf, adding:

        sub_filter '&ump=1' '';
        sub_filter_once off;
        sub_filter_types application/json;

inside the location / { block seems to successfully strip UMP from stream URLs.

Can confirm that this is working.

Confirmed as well.

Can confirm too

nanedi commented 7 months ago

In config/pipedapi.conf, adding:

        sub_filter '&ump=1' '';
        sub_filter_once off;
        sub_filter_types application/json;

inside the location / { block seems to successfully strip UMP from stream URLs.

On web yes its working, but on libretube it stopped wotking.

ngn13 commented 7 months ago

In config/pipedapi.conf, adding:

        sub_filter '&ump=1' '';
        sub_filter_once off;
        sub_filter_types application/json;

inside the location / { block seems to successfully strip UMP from stream URLs.

On web yes its working, but on libretube it stopped wotking.

Yeah, it seems to break libretube

stonerl commented 7 months ago

@nanedi I'm using Yattee on iOS, and it's working perfectly fine. Before the fix, I had the same issue as I had on the web frontend. Now all the videos are playing again.

maximushugus commented 7 months ago

In config/pipedapi.conf, adding:

        sub_filter '&ump=1' '';
        sub_filter_once off;
        sub_filter_types application/json;

inside the location / { block seems to successfully strip UMP from stream URLs.

Can also confirm that my self hosted instance is working again.

Yeah, it seems to break libretube

I managed to make libretube to work with this modification by using HLS instead of DASH

ngn13 commented 7 months ago
if ($http_user_agent !~ "com.github.libretube") {
    set $ump '&ump=1';
}

sub_filter_once off;
sub_filter $ump '';
sub_filter_types application/json;

fix for libretube

nanedi commented 7 months ago
if ($http_user_agent !~ "com.github.libretube") {
    set $ump '&ump=1';
}

sub_filter_once off;
sub_filter $ump '';
sub_filter_types application/json;

fix for libretube

Fixed it,

Thanks

nanedi commented 7 months ago
if ($http_user_agent !~ "com.github.libretube") {
    set $ump '&ump=1';
}

sub_filter_once off;
sub_filter $ump '';
sub_filter_types application/json;

fix for libretube

But libretube still get error 1002.

agpsl commented 7 months ago

I didn't use any of the fixes suggested in this issue (for now) and Libretube (using my self hosted instance) is working just fine with HLS enabled - just reporting

ngn13 commented 7 months ago
if ($http_user_agent !~ "com.github.libretube") {
    set $ump '&ump=1';
}

sub_filter_once off;
sub_filter $ump '';
sub_filter_types application/json;

fix for libretube

But libretube still get error 1002.

Do you also get 1002 on the web?

nanedi commented 7 months ago
if ($http_user_agent !~ "com.github.libretube") {
    set $ump '&ump=1';
}

sub_filter_once off;
sub_filter $ump '';
sub_filter_types application/json;

fix for libretube

But libretube still get error 1002.

Do you also get 1002 on the web?

Web is fine.

ngn13 commented 7 months ago

idk it works for me, I dont get 1002 on libretube with the fix, try using HLS like @maximushugus and @ @agpsl pointed out you can enable it from settings > audio and video > use hls

nanedi commented 7 months ago

idk it works for me, I dont get 1002 on libretube with the fix, try using HLS like @maximushugus and @ @agpsl pointed out you can enable it from settings > audio and video > use hls

Yes I understand that dash.

lietu commented 7 months ago

Pulling latest container images and restarting my piped seems to have finally fixed the issues, thanks!

nanedi commented 7 months ago

Pulling latest container images and restarting my piped seems to have finally fixed the issues, thanks!

on the web, yes, on the libretube still get error 1002.

lietu commented 7 months ago

As far as I can tell this is Piped and LibreTube is https://github.com/libre-tube/LibreTube/issues

samip5 commented 7 months ago

Please everyone affected with 1002, just re-pull your container(s) and restart it. It might need some forcing for it to pull the newer one.

If your ytproxy is not sending the following headers (/videoplayback endpoint):

access-control-allow-headers: *
access-control-allow-methods: *
access-control-allow-origin: *

Then you're not running latest enough.