pywb
pywb copied to clipboard
POST to /$root/ 404 error
I have a YouTube video that plays back fine when I have a pywb collection set to test, but when I use $root instead it fails to play. I think I tracked this down to a POST that succeeds with collection test but results in a 404 when POSTing to /$root/:
Here's the log message with collection test:
127.0.0.1 - - [2022-05-30 17:37:19] "POST /test/resource/postreq?url=https%3A%2F%2Fwww.youtube.com%2Fyoutubei%2Fv1%2Fplayer%3Fkey%3DAIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8%26prettyPrint%3Dfalse&closest=20220510010325&matchType=exact HTTP/1.1" 200 27127 0.002989
and with collection $root:
127.0.0.1 - - [2022-05-30 21:39:42] "POST /$root/resource/postreq?url=http%3A%2F%2Fyoutubei%2Fv1%2Fplayer%3Fkey%3DAIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8%26prettyPrint%3Dfalse&closest=now&matchType=exact HTTP/1.1" 404 215 0.003732
I have a very simple demonstration of the problem in this GitHub repository:
https://github.com/edsu/pywb-test/
You can clone it, docker compose up, and then try to start the video at this URL:
http://localhost:8080/was/20220510010324/https://apod.nasa.gov/apod/astropix.html
which should work. If you stop Docker and update the config.yaml to look like
collections:
$root:
index_paths: ./collections/test/indexes/
archive_paths: ./collections/test/archive/
and start Docker back up and view this URL you'll see the page renders, but the YouTube video no longer plays:
http://localhost:8080/20220510010324/https://apod.nasa.gov/apod/astropix.html
The Docker setup is using the latest pywb (v2.6.7)