joeyespo / grip

Preview GitHub README.md files locally before committing them.
MIT License
6.48k stars 424 forks source link

A Bunch of 404 errors on GET #390

Open topherbuckley opened 3 months ago

topherbuckley commented 3 months ago

Installed via pip3 install grip

grip -V returns 4.6.2

Running grip README.md returns:|

grip README.md 
 * Serving Flask app 'grip.app'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://localhost:6419
Press CTRL+C to quit

refreshing or opening http://localhost:6419 yields the following additional lines to the terminal output:

127.0.0.1 - - [10/Jul/2024 14:53:26] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/repos-overview.47cf64b9ae0677ccb350.module.css HTTP/1.1" 200 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/primer-primitives-8500c2c7ce5f.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/light_colorblind-afcc3a6a38dd.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/notifications-subscriptions-menu.572fff1cb5c3caef1ac9.module.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/repository-7247b57543b3.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/github-0c7b5281bcc9.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark_dimmed-aa16bfa90fb8.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark_colorblind-a4629b2e906b.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/light_tritanopia-fe4137b54b26.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark-6b1e37da2254.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/primer-61560ce103d3.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/light_high_contrast-79bca7145393.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark_high_contrast-f4daad25d8cf.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/code-68246ade0881.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark_tritanopia-1911f0cf0db4.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/global-2e88a79ce78c.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/light-efd2f2257c96.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/static/octicons/octicons.css HTTP/1.1" 200 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /media/github_token_permissions.png HTTP/1.1" 200 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /media/publisher-subscriber.png HTTP/1.1" 200 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/repos-overview-3da3b89986f0.js.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/primer-primitives-12554e01503d.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/light_colorblind-a2efd77b55e9.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/notifications-subscriptions-menu-b0b810818f76.js.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark_dimmed-2db8001720d9.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/repository-6c83d4ccc08e.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark_colorblind-8d4a43c34a22.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/light_tritanopia-ee8e4d3e2717.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/github-21dadf9ad6fd.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark-a9304e8dc36c.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/light_high_contrast-d0e839a9ffb8.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark_high_contrast-70c441ac8110.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/code-bc4bf4db4c79.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark_tritanopia-e2c60889d2cf.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/primer-5ea5d95fbbf1.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/global-6024f5486a82.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/light-d4d1e19aa025.css.map HTTP/1.1" 404 -

I know very little about CSS, but it appears all my links are in black text rather than the expected blue. Looking at the "Inspect" utility in firefox it appears the color variables used by the links are not set. I suspect this is in one of the css files that returned a 404 error.

If I instead clone the repo and install via pip install -e . from the current tip of the master branch (a3f0ab5), (as I don't see a tag for 4.6.2), then the links are blue, but some other 404 errors still populate the terminal

127.0.0.1 - - [10/Jul/2024 14:53:26] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/repos-overview.47cf64b9ae0677ccb350.module.css HTTP/1.1" 200 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/primer-primitives-8500c2c7ce5f.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/light_colorblind-afcc3a6a38dd.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/notifications-subscriptions-menu.572fff1cb5c3caef1ac9.module.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/repository-7247b57543b3.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/github-0c7b5281bcc9.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark_dimmed-aa16bfa90fb8.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark_colorblind-a4629b2e906b.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/light_tritanopia-fe4137b54b26.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark-6b1e37da2254.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/primer-61560ce103d3.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/light_high_contrast-79bca7145393.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark_high_contrast-f4daad25d8cf.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/code-68246ade0881.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark_tritanopia-1911f0cf0db4.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/global-2e88a79ce78c.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/light-efd2f2257c96.css HTTP/1.1" 304 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/static/octicons/octicons.css HTTP/1.1" 200 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /media/github_token_permissions.png HTTP/1.1" 200 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /media/publisher-subscriber.png HTTP/1.1" 200 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/repos-overview-3da3b89986f0.js.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/primer-primitives-12554e01503d.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/light_colorblind-a2efd77b55e9.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/notifications-subscriptions-menu-b0b810818f76.js.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark_dimmed-2db8001720d9.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/repository-6c83d4ccc08e.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark_colorblind-8d4a43c34a22.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/light_tritanopia-ee8e4d3e2717.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/github-21dadf9ad6fd.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark-a9304e8dc36c.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/light_high_contrast-d0e839a9ffb8.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark_high_contrast-70c441ac8110.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/code-bc4bf4db4c79.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/dark_tritanopia-e2c60889d2cf.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/primer-5ea5d95fbbf1.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/global-6024f5486a82.css.map HTTP/1.1" 404 -
127.0.0.1 - - [10/Jul/2024 14:53:26] "GET /__/grip/asset/light-d4d1e19aa025.css.map HTTP/1.1" 404 -

Not sure how you are publishing to pip, but wonder if the missing tag has something to do with this. I see the same black text links if I checkout v4.6.1 (3c3f852) so guessing the current pip package doesn't have something from the recent commits that fixed this.

topherbuckley commented 3 months ago

After having a full read through your README, I tried grip --pass $GITHUB_TOKEN thinking the 404 errors were possibly this API limit, but don't see any difference.